Player::vehicle

From RAGE Multiplayer Wiki
Revision as of 13:48, 17 April 2017 by CocaColaBear (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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!');

See Also