onClientVehicleExplode | Multi Theft Auto: Wiki Skip to content

onClientVehicleExplode

Client-side
Server-side
Shared

This event is triggered when a vehicle explodes.

This event can not be cancelled.

Parameters

This event does not pass any parameters to the handler function.

Source

element: The source of this event is the vehicle that exploded.

Code Examples

client

This example will output some text to chat on vehicle explosion

addEventHandler("onClientVehicleExplode", root, function()
local modelname = getVehicleName(source)
outputChatBox(modelname.." just exploded!")
end)

See Also

Vehicle Functions