Player::vehicle: Difference between revisions

From RAGE Multiplayer Wiki
(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...")
 
No edit summary
Line 9: Line 9:
   player.outputChatBox('You are not in the vehicle right now!');
   player.outputChatBox('You are not in the vehicle right now!');
</source>
</source>
==See Also==
{{Player_block}}

Revision as of 13:48, 17 April 2017

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