View the code on GitHub: ex_extended/client/functions.luaarrow-up-right
Add the line of code exactly as seen in the screenshot below.
TriggerEvent('cd_garage:AddKeys', exports['cd_garage']:GetPlate(vehicle))
View the code on GitHub: es_extended/client/functions.luaarrow-up-right
TriggerServerEvent('cd_garage:RemovePersistentVehicles', exports['cd_garage']:GetPlate(vehicle))
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.
View the code on GitHub: esx_policejob/server/main.luaarrow-up-right
REPLACE the line of code exactly as seen in the screenshot below.
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},
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},
Update Garage Type
View the code on GitHub: esx_boat/client/main.luaarrow-up-right
TriggerEvent('cd_garage:UpdateGarageType')
Last updated 1 month ago
Was this helpful?