Skip to main content

Player::isLeavingVehicle

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.

This property returns true or false of player vehicle leave state.

Note: this property is read-only.

Example​

let playerIsLeavingVehicle = player.isLeavingVehicle
if (playerIsLeavingVehicle)
player.outputChatBox('You are leaving the vehicle right now!');
else
player.outputChatBox('You are not leaving the vehicle right now!');