Wiki

Clone wiki

EFLC-MP LUA / getPlayerPassenger

Description

Gets the vehicle and seat the player is in.

Parameters

Int playerid
Int playerid: ID of the player

Return values

Int vehicleId, seatId
VehicleId will be 0 if the player isnt in any vehicle

Example

local vehicleId, seatId = getPlayerPassenger(playerid)

Updated