๐Miscellaneous
Configure the script other dependencies
Last updated
Configure the script other dependencies
Last updated
Event/Exports to add funds to bossmenu that are recieved from test drive or buy vehicle
This function is used to remove an item from stash, necessary to remove car docs when on successful trade gets removed from stash
Export to use fuel script with the vehicleshop
-- function to provide keys for vehicles
function GiveKeys(veh, tempKeys)
if tempKeys then
-- if your script supports different logic for temporary keys
TriggerServerEvent('vehiclekeys:client:SetOwner', QBCore.Functions.GetPlate(veh))
else
-- if your script supports different logic for permanent keys
TriggerEvent('vehiclekeys:client:SetOwner', QBCore.Functions.GetPlate(veh))
end
end
function OpenBossMenu(job)
-- event/export to open boss menu from the script
TriggerEvent('qb-bossmenu:client:OpenMenu')
end
function AddFund(amount, job)
if GetResourceState('qb-management') == 'started' then
exports['qb-management']:AddMoney(job, amount)
end
end
function SetVehicleFuel(veh, amt)
exports['LegacyFuel']:SetFuel(veh, amt)
end