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

Vehicle::getPedInSeat

Материал из RAGE MP Wiki Archive
Версия от 09:46, 20 июля 2021; imported>Revelt (Syntax)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

-1 (driver) <= index < GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS(vehicle)

If a player enters the driver seat from the passenger side, getPedInSeat(-1) will return 0 until the player actually reaches the seat.

Syntax

  1. Information : It will crash client-side if you try to getPedInSeat for a trailer model vehicle

<syntaxhighlight lang="javascript">vehicle.getPedInSeat(index);</syntaxhighlight>

Required Arguments

  • index: int

Return value

  • Ped handle or object

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also