Skip to main content

Vehicle Related Events

esx:vehicleCreated

Triggered when a xVehicle object is completely created and the vehicle spawns into the world.

AddEventHandler("esx:vehicleCreated", function(entity, netId, xVehicle)
end)

esx:vehicleDeleted

Triggered when a xVehicle object is completely deleted.

AddEventHandler("esx:vehicleDeleted", function(id, entity, netId, vin, plate)
end)