Player::vehicle

From RAGE Multiplayer Wiki
Revision as of 19:39, 4 January 2017 by Niks (talk | contribs) (Created page with "This property returns player vehicle or nil. '''Note: this property is read-only.''' == Example == <source lang="javascript"> if (player.vehicle) player.outputChatBox('You...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This property returns player vehicle or nil.

Note: this property is read-only.

Example

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