Player::vehicle

From RAGE Multiplayer Wiki
Revision as of 22:27, 20 April 2020 by MrPancakers2 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Shared
Function

 JavaScript


Returns the vehicle object the player is currently sitting in.

Getter

  • Object - Vehicle


JavaScript Syntax

Syntax

player.vehicle

Example

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


See Also