Installation

1) Download your script from https://keymaster.fivem.net and place it inside your resource folder. 2) Download ox_lib (not source code) and start it before my scripts in server.cfg 3) Make sure you are using game build 2545 or newer.. 4) Go to Config > Config.lua and setup your Framework in Config.Framework option. 5) Go to your Framework functions file and replace the following functions:

For QBCore:

-- Go to qb-core/client/functions.lua
-- Search the function QBCore.Functions.GetVehicleProperties (line 414 - 560) and delete it.
-- Search the function QBCore.Functions.SetVehicleProperties (line 562 - 854) 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:

-- Go to es_extended/client/functions.lua
-- Search and delete the function ESX.Game.GetVehicleProperties (line 596 - 745)
-- Search and delete the function ESX.Game.SetVehicleProperties (line 747 - 999)
-- Place this two exports in the file and save it

function ESX.Game.GetVehicleProperties(vehicle)
    return exports['av_tuning']:GetVehicleProperties(vehicle)
end

function ESX.Game.SetVehicleProperties(vehicle, props)
    return exports['av_tuning']:SetVehicleProperties(vehicle, props)
end

Last updated