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

GetPlayerVehicleSeat

Материал из RAGE MP Wiki Archive

Returns the seat ID that the player is currently occupying.

Syntax

<syntaxhighlight lang="C#" >int NAPI.Player.GetPlayerVehicleSeat(Player player);</syntaxhighlight>

Required Arguments

  • player: parameter input should be in Player type.

NOTE: This function returns data in int type. -1 for driver's seat, 0 upwards for passengers.

Usage example(s)

Example Description <syntaxhighlight lang="C#" >NAPI.Player.GetPlayerVehicleSeat(player);</syntaxhighlight>