RedM Natives

GET_SEAT_PED_IS_USING

Hash0x57B78C17
Runtime nameGetSeatPedIsUsing
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_SEAT_PED_IS_USING(Ped ped);

Parameters

NameTypeDescription
pedPed

the ped id

Returns int — Returns the seat index for specified `ped`, if the ped is not sitting in a vehicle it will return -3.

Usage

Lua
local retval = GetSeatPedIsUsing(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x57b78c17, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetSeatPedIsUsing(ped);

// by hash
const retval = Citizen.invokeNative('0x57b78c17', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x57b78c17, ped);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.