Vehicle::getPedInSeat: Difference between revisions

From RAGE Multiplayer Wiki
(Added some info)
mNo edit summary
Line 1: Line 1:
-1 (driver) <= index < GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS(vehicle)
-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.'''
'''If a player enters the driver seat from the passenger side, getPedInSeat(-1) will return 0 until the player actually reaches the seat.'''
==Syntax==
==Syntax==

Revision as of 22:52, 19 October 2018

-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

vehicle.getPedInSeat(index);

Required Arguments

  • index: int

Return value

  • Ped handle or object

Example

// todo

See also