Player::seat

From RAGE Multiplayer Wiki

Server-Side
Property

 JavaScript



This property returns the player's current vehicle seat.

Seats:

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

In version 0.3.7 or earlier: Seats:

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

Getter

  • Int

JavaScript Syntax

Syntax

player.seat

Example

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


See Also