Player::seat: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property returns player current vehicle seat or nil. '''Note: this property is read-only.''' == Example == <source lang="javascript"> if (player.seat) player.outputCha...")
 
No edit summary
Line 1: Line 1:
This property returns player current vehicle seat or nil.
This property returns players vehicle seat or nil.


'''Note: this property is read-only.'''
'''Note: this property is read-only.'''

Revision as of 19:43, 4 January 2017

This property returns players vehicle seat or nil.

Note: this property is read-only.

Example

if (player.seat)
  player.outputChatBox('Your vehicle set is ' + player.seat);
else
  player.outputChatBox('You are not in the vehicle right now!');