OnClientVehicleExplode: Difference between revisions
Jump to navigation
Jump to search
(Added interwiki (ES)) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
This event is triggered when a vehicle explodes. | This event is triggered when a vehicle explodes. | ||
{{Note|This event can not be cancelled.}} | |||
==Parameters== | ==Parameters== | ||
Line 12: | Line 13: | ||
This example will output some text to chat on vehicle explosion | This example will output some text to chat on vehicle explosion | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addEventHandler("onClientVehicleExplode", | addEventHandler("onClientVehicleExplode", root, function() | ||
local modelname = getVehicleName(source) | local modelname = getVehicleName(source) | ||
outputChatBox(modelname.." just exploded!") | outputChatBox(modelname.." just exploded!") |
Latest revision as of 21:15, 12 August 2023
This event is triggered when a vehicle explodes.
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
- onClientTrailerAttach
- onClientTrailerDetach
- onClientVehicleCollision
- onClientVehicleDamage
- onClientVehicleEnter
- onClientVehicleExit
- onClientVehicleExplode
- onClientVehicleNitroStateChange
- onClientVehicleRespawn
- onClientVehicleStartEnter
- onClientVehicleStartExit
- onClientVehicleWeaponHit