Player::vehicle

From RAGE Multiplayer Wiki
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