cd_garage
This integration was created for cd_garage v4.3.4. I haven’t tested it on newer versions. If it doesn’t work for you, or if you have a better way to integrate it, feel free to contact me on Discord.
cd_garage
Go to cd_garage/configs/client_customize_me.lua
Find the function GiveVehicleKeys.
It should look something like this :
function GiveVehicleKeys(plate, vehicle) --This will be triggered when the script is giving keys to a vehicle ([vehicle] may not always be defined).
if Config.VehicleKeys.ENABLE then
AddKey(plate)
else
if GetResourceState('vehicles_keys') == 'started' then
TriggerServerEvent('vehicles_keys:selfGiveVehicleKeys', plate)
elseif GetResourceState('fivecode_carkeys') == 'started' then
TriggerServerEvent('fivecode_carkeys:pdmGiveKey', plate)
elseif GetResourceState('stasiek_vehiclekeys') == 'started' then
DecorSetInt(vehicle, 'owner', GetPlayerServerId(PlayerId()))
elseif GetResourceState('xd_locksystem') == 'started' then
exports['xd_locksystem']:givePlayerKeys(plate)
elseif GetResourceState('ti_vehicleKeys') == 'started' then
exports['ti_vehicleKeys']:addTemporaryVehicle(plate)
elseif GetResourceState('F_RealCarKeysSystem') == 'started' then
TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate)
else
TriggerEvent('vehiclekeys:client:SetOwner', plate) --The default qb-keys event.
TriggerEvent('vehiclekeys:client:AddKeys', plate) --The default qb-keys event.
--Add your own give vehicle keys events/exports here.
end
end
end
Add this inside the function :
Then, find the function VehicleStored (it is usually located right above GiveVehicleKeys) and add this line:
Last updated