# chaser\_calculatetuningacc

It's a internal function used to consider tuning on the chaser\_getpp export, but may be useful for users to also consider tuning in their PP System calibration process.

Example:

```lua
RegisterCommand("gettuneacc", function()
    if chaser:chaser_getloadstatus() then
        local ped = PlayerPedId()
        local vehicle = GetVehiclePedIsIn(ped, false)
        local weight = chaser:chaser_getweight()
        local engine = chaser:chaser_getengine()
        local turbodata = chaser:chaser_getturbo()
        local hastransmissionupgrade = GetVehicleMod(vehicle,13) >= 0
        local sendturbodata = {
            compressorsize = turbodata.size, --INT value 
            boosttype = turbodata.typeid, --INT value
            peakturbodecayboost = turbodata.ptdboost, --INT value
            turbodecaypoint = turbodata.tdp, --Float value
            maxtrboostpmax = turbodata.mtbpmax, --Float value
            maxtrboostpmin = turbodata.mtbpmin, --Float value
            maxtrboostpminprct = turbodata.mtbpminprct, --INT value
            maxtrboostpmaxprct = turbodata.mtbpmaxprct,  --INT value
            booststartpoint = turbodata.bsp --Float value
        }
        local tuneacc = chaser:chaser_getpp(chaser:chaser_getvehname(),weight,engine,sendturbodata,hastransmissionupgrade)
        print(tuneacc)
    end
end, false)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://legacydmc.gitbook.io/chaser/other-exports/chaser_calculatetuningacc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
