Player::getSeatIsTryingToEnter

From RAGE Multiplayer Wiki

Syntax

player.getSeatIsTryingToEnter();

Required Arguments

Return value

  • int

Example

Client-Side
const vehHandle = mp.players.local.getVehicleIsTryingToEnter();
if (vehHandle) {
    const seat = mp.players.local.getSeatIsTryingToEnter(); // usually returns -3 if ped is not entering any seat
    if (seat >= -1) mp.gui.chat.push(`You are trying to enter vehicle seat: ${seat}.`);
}

See also