Player::vehicle
Shared Function
Returns the vehicle object the player is currently sitting in.
Getter
- Object - Vehicle
Syntax
player.vehicle
Example
Server-Side
if (player.vehicle)
player.outputChatBox('You are in the vehicle right now!');
else
player.outputChatBox('You are not in the vehicle right now!');