Перейти к содержанию

Player::getSeatIsTryingToEnter

Материал из RAGE MP Wiki Archive
Версия от 10:02, 27 августа 2020; imported>Hazes (Added example.)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Syntax

<syntaxhighlight lang="javascript">player.getSeatIsTryingToEnter();</syntaxhighlight>

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