OnClientVehicleStartEnter: Difference between revisions
Jump to navigation
Jump to search
Cazomino05 (talk | contribs) m (Added door parameter) |
OpenIDUser32 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Client event}} | {{Client event}} | ||
__NOTOC__ | __NOTOC__ | ||
Line 10: | Line 9: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
{{new_feature|3|1.0| | {{new_feature/item|3|1.0|| | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
player thePlayer, int seat, int door | player thePlayer, int seat, int door | ||
Line 17: | Line 16: | ||
*'''thePlayer:''' the player that just started entering a vehicle. | *'''thePlayer:''' the player that just started entering a vehicle. | ||
*'''seat:''' the number of the seat he is going to sit on. | *'''seat:''' the number of the seat he is going to sit on. | ||
{{new_feature|3|1.0| | {{new_feature/item|3|1.0|| | ||
*'''door:''' An integer of which door the player used (0-3). 0 is driver side door, 1 is front passenger, 2 is back left, 3 is back right. | *'''door:''' An integer of which door the player used (0-3). 0 is driver side door, 1 is front passenger, 2 is back left, 3 is back right. | ||
}} | }} | ||
==Source== | ==Source== | ||
Line 26: | Line 24: | ||
==Example== | ==Example== | ||
{{Example}} | |||
==See Also== | ==See Also== |
Revision as of 11:15, 21 November 2011
This event is triggered when a player starts entering a vehicle. Once the entering animation completes, onClientVehicleEnter is triggered.
Parameters
player thePlayer, int seat, int door
- thePlayer: the player that just started entering a vehicle.
- seat: the number of the seat he is going to sit on.
- door: An integer of which door the player used (0-3). 0 is driver side door, 1 is front passenger, 2 is back left, 3 is back right.
Source
The source of this event is the vehicle the player is entering.
Example
Script Example Missing Event OnClientVehicleStartEnter needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
-- TODO
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