Player::seat

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Server-Side
Property

Js.png 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

Getter

  • Int

JavaScript Syntax
Jslogo.png

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