OnClientVehicleStartExit: Difference between revisions
Jump to navigation
Jump to search
m (→Example) |
m (→Example) |
||
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
This example outputs to the player that he's leaving the drivers seat. | This example outputs to the player that he's leaving the drivers seat. (TESTED!) | ||
<syntaxhighlight lang="lua">addEventHandler("onClientVehicleStartExit",root,function(player,seat,door) | <syntaxhighlight lang="lua">addEventHandler("onClientVehicleStartExit",root,function(player,seat,door) | ||
if(seat==0)and(door==0)then | if(seat==0)and(door==0)then |
Revision as of 21:08, 27 April 2012
This event is triggered when a player starts exiting a vehicle. Once the exiting animation completes, onClientVehicleExit is triggered.
Parameters
player thePlayer, int seat, int door
- thePlayer: the player who started exiting the vehicle.
- seat: the number of the seat that the player was sitting on.
- door: the number of the door that the player is using to leave.
Source
The source of this event is the vehicle that the player started to exit.
Example
This example outputs to the player that he's leaving the drivers seat. (TESTED!)
addEventHandler("onClientVehicleStartExit",root,function(player,seat,door) if(seat==0)and(door==0)then outputChatBox("You are leaving the drivers seat.",player) end 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