OnClientVehicleExplode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Added interwiki (ES))
No edit summary
Line 2: Line 2:
__NOTOC__  
__NOTOC__  
This event is triggered when a vehicle explodes.
This event is triggered when a vehicle explodes.
{{Note|Remember, this event can not be canceled.}}


==Parameters==  
==Parameters==  

Revision as of 18:32, 29 July 2018

This event is triggered when a vehicle explodes.

[[{{{image}}}|link=|]] Note: Remember, this event can not be canceled.

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", getRootElement(), function()
  local modelname = getVehicleName(source)
  outputChatBox(modelname.." just exploded!")
end)

See Also

Client vehicle events


Client event functions