Difference between revisions of "Player::seat"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
 
Line 2: Line 2:
  
 
'''Note: this property is read-only.'''
 
'''Note: this property is read-only.'''
 +
 +
Seats:
 +
* -1 - driver seat
 +
* 0 - passenger seat 1
 +
* 1 - passenger seat 2
 +
* 2 - passenger seat 3
 
== Example ==
 
== Example ==
 
<source lang="javascript">
 
<source lang="javascript">

Latest revision as of 18:32, 9 February 2020

This property returns players vehicle seat or nil.

Note: this property is read-only.

Seats:

  • -1 - driver seat
  • 0 - passenger seat 1
  • 1 - passenger seat 2
  • 2 - passenger seat 3

Example

if (player.vehicle)
  player.outputChatBox('Your vehicle seat is ' + player.seat);
else
  player.outputChatBox('You are not in the vehicle right now!');

See Also