ESX

es_extended

1

Add Keys (client side)

View the code on GitHub: ex_extended/client/functions.luaarrow-up-right

Add the line of code exactly as seen in the screenshot below.

ex_extended/client/functions.lua — line 570
TriggerEvent('cd_garage:AddKeys', exports['cd_garage']:GetPlate(vehicle))
2

Remove Persistent Vehicles

View the code on GitHub: es_extended/client/functions.luaarrow-up-right

Add the line of code exactly as seen in the screenshot below.

es_extended/client/functions.lua — line 23
TriggerServerEvent('cd_garage:RemovePersistentVehicles', exports['cd_garage']:GetPlate(vehicle))
circle-info

Do vehicles still respawn after deleting them?

If vehicles still respawn after being deleted, it’s likely that one of your resources does not use the ESX delete vehicle function. You will need to refer to #PersistentVehiclesarrow-up-right and add the necessary event to that resource.


esx_policejob

1

Personal Owned Job Garage

View the code on GitHub: esx_policejob/server/main.luaarrow-up-right

REPLACE the line of code exactly as seen in the screenshot below.

esx_policejob/server/main.lua — line 377
MySQL.insert('INSERT INTO owned_vehicles (owner, vehicle, plate, type, job_personalowned, `stored`) VALUES (?, ?, ?, ?, ?, ?)', { xPlayer.identifier, json.encode(vehicleProps), vehicleProps.plate, type, xPlayer.job.name, true},
2

Society Owned Job Garage

View the code on GitHub: esx_policejob/server/main.luaarrow-up-right

REPLACE the line of code exactly as seen in the screenshot below.

esx_policejob/server/main.lua — line 377
MySQL.insert('INSERT INTO owned_vehicles (owner, vehicle, plate, type, job, `stored`) VALUES (?, ?, ?, ?, ?, ?)', { xPlayer.job.name, json.encode(vehicleProps), vehicleProps.plate, type, xPlayer.job.name, true},


esx_boat

1

Update Garage Type

View the code on GitHub: esx_boat/client/main.luaarrow-up-right

Add the line of code exactly as seen in the screenshot below.

esx_boat/client/main.lua — line 122
TriggerEvent('cd_garage:UpdateGarageType')

Last updated

Was this helpful?