> For the complete documentation index, see [llms.txt](https://docs.av-scripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.av-scripts.com/guides/tuning-script/installation.md).

# Installation

**Dependencies:**

* ox\_lib: <https://github.com/overextended/ox_lib/releases/latest/download/ox_lib.zip>
* oxmysql: <https://github.com/overextended/oxmysql/releases/latest/download/oxmysql.zip>

### Frameworks

> In order to apply all vehicle mods correctly, you need to trigger the Get/SetVehicleProperties exports from AV Tuning

**For QBCore:**

```lua
-- Go to qb-core/client/functions.lua
-- Search the function QBCore.Functions.GetVehicleProperties (line 417 - 570) and delete it.
-- Search the function QBCore.Functions.SetVehicleProperties (line 572 - 865) delete it too.
-- Place this two exports in the file and save it:

function QBCore.Functions.GetVehicleProperties(vehicle)
    return exports['av_tuning']:GetVehicleProperties(vehicle)
end

function QBCore.Functions.SetVehicleProperties(vehicle, props)
    return exports['av_tuning']:SetVehicleProperties(vehicle, props)
end
```

**For ESX:**

```lua
-- Go to esx_lib/imports/game/client.lua
-- Search and delete the function xLib.game.getVehicleProperties (line 267 - 416)
-- Search and delete the function xLib.game.setVehicleProperties (line 421 - 693)
-- Place this two exports in the file and save it

function xLib.game.getVehicleProperties(vehicle)
    return exports['av_tuning']:GetVehicleProperties(vehicle)
end

function xLib.game.setVehicleProperties(vehicle, props)
    return exports['av_tuning']:SetVehicleProperties(vehicle, props)
end
```

#### For Qbox:

```lua
-- Go to ox_lib/resource/vehicleProperties/client.lua
-- Search and delete the function lib.getVehicleProperties (line 139 - 294)
-- Search and delete the function lib.setVehicleProperties (line 300 - 656)
-- Place this two exports in the file and save it

function lib.getVehicleProperties(vehicle)
    return exports['av_tuning']:GetVehicleProperties(vehicle)
end

function lib.setVehicleProperties(vehicle, props)
    return exports['av_tuning']:SetVehicleProperties(vehicle, props)
end
```

{% hint style="info" %}
Please be aware that some garage scripts decides to ignore the Framework Get/SetVehicleProperties functions, ask the garage script if their set/get function are available for edit, that way you can add the Tuning exports, otherwise this script will not work as intended.
{% endhint %}
