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