OnClientVehicleRespawn: Difference between revisions
Jump to navigation
Jump to search
OpenIDUser32 (talk | contribs) No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
==Example== | ==Example== | ||
This example outputs to the console that a vehicle has respawned. | |||
<syntaxhighlight lang="lua">addEventHandler("onClientVehicleRespawn",root,function() | |||
outputConsole("A vehicle has respawned.") | |||
end)</syntaxhighlight> | |||
==See Also== | ==See Also== |
Revision as of 05:10, 27 April 2012
This event is triggered when a vehicle respawns.
Parameters
This event has no parameters.
Source
The source of this event is the vehicle that respawned.
Example
This example outputs to the console that a vehicle has respawned.
addEventHandler("onClientVehicleRespawn",root,function() outputConsole("A vehicle has respawned.") end)
See Also
Client vehicle events
- onClientTrailerAttach
- onClientTrailerDetach
- onClientVehicleCollision
- onClientVehicleDamage
- onClientVehicleEnter
- onClientVehicleExit
- onClientVehicleExplode
- onClientVehicleNitroStateChange
- onClientVehicleRespawn
- onClientVehicleStartEnter
- onClientVehicleStartExit
- onClientVehicleWeaponHit
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled