OnClientVehicleExplode

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This event is triggered when a vehicle explodes.

[[{{{image}}}|link=|]] Note: This event can not be cancelled.

Parameters

This event has no parameters.

Source

The source of this event is the vehicle that exploded.

Example

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

Client vehicle events


Client event functions