IS_PED_IN_ANY_VEHICLE
Signature
BOOL IS_PED_IN_ANY_VEHICLE(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | the ped id |
Returns BOOL — Returns `true` if the specified `ped` is in any vehicle
Usage
local retval = IsPedInAnyVehicle(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x3b0171ee, ped, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedInAnyVehicle(ped);
// by hash
const retval = Citizen.invokeNative('0x3b0171ee', ped, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x3b0171ee, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.