OnClientTrailerDetach: Difference between revisions
Jump to navigation
Jump to search
OpenIDUser32 (talk | contribs) No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">addEventHandler("onClientTrailerDetach",root,function(towedBy) | |||
player = getVehicleOccupant(towedBy,0) | |||
outputChatBox("The vehicle is now detached.",player) | |||
end)</syntaxhighlight> | |||
==See Also== | ==See Also== |
Revision as of 22:44, 27 April 2012
This event is triggered when a trailer gets detached from its towing vehicle.
Parameters
vehicle towedBy
- towedBy: the vehicle that was towing the trailer.
Source
The source of this event is the trailer that is now detached.
Example
addEventHandler("onClientTrailerDetach",root,function(towedBy) player = getVehicleOccupant(towedBy,0) outputChatBox("The vehicle is now detached.",player) 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