GET_SEAT_PED_IS_USING
Signature
int GET_SEAT_PED_IS_USING(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | 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
local retval = GetSeatPedIsUsing(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x57b78c17, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetSeatPedIsUsing(ped);
// by hash
const retval = Citizen.invokeNative('0x57b78c17', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x57b78c17, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.