IS_PED_IN_VEHICLE
Gets a value indicating whether the specified ped is in the specified vehicle.
Hash
0xA3EE4A07279BB9DBRuntime name
IsPedInVehicleNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xA3EE4A07279BB9DBSignature
BOOL IS_PED_IN_VEHICLE(Ped ped, Vehicle vehicle, BOOL atGetIn);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
vehicle | Vehicle | — |
atGetIn | BOOL | — |
Returns BOOL
Description
Gets a value indicating whether the specified ped is in the specified vehicle.
Usage
local retval = IsPedInVehicle(ped, vehicle, atGetIn)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA3EE4A07279BB9DB, ped, vehicle, atGetIn, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedInVehicle(ped, vehicle, atGetIn);
// by hash
const retval = Citizen.invokeNative('0xA3EE4A07279BB9DB', ped, vehicle, atGetIn, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xA3EE4A07279BB9DB, ped, vehicle, atGetIn);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.