OnClientVehicleStartEnter: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (See Also for client vehicle events)
m (Added door parameter)
Line 5: Line 5:


==Parameters==  
==Parameters==  
{{Deprecated_feature|3|1.0|
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
player thePlayer, int seat
player thePlayer, int seat
</syntaxhighlight>
</syntaxhighlight>
}}
{{new_feature|3|1.0|
<syntaxhighlight lang="lua">
player thePlayer, int seat, int door
</syntaxhighlight>
}}
*'''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|
*'''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==

Revision as of 16:51, 24 April 2009

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


See Also

Client vehicle events


Client event functions