- Documentation
- Client events
- onClientVehicleExplode
Event
onClientVehicleExplode
A vehicle exploded (blowVehicle or an explosion reported by its owner). It arrives at the same moment for everyone, right before onClientExplosion.
Handler
addEventHandler("onClientVehicleExplode", root, function() ... end)Source
source is the vehicle.
Example
addEventHandler("onClientVehicleExplode", root, function()
if getPedOccupiedVehicle(localPlayer) == source then outputChatBox("Twoje auto wybuchło!") end
end)