IS_PED_SITTING_IN_VEHICLE
Detect if ped is sitting in the specified vehicle [True/False]
Hash
0xA808AA1D79230FC2Runtime name
IsPedSittingInVehicleNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xA808AA1D79230FC2Signature
BOOL IS_PED_SITTING_IN_VEHICLE(Ped ped, Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
vehicle | Vehicle | — |
Returns BOOL
Description
Detect if ped is sitting in the specified vehicle
[True/False]
Usage
local retval = IsPedSittingInVehicle(ped, vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA808AA1D79230FC2, ped, vehicle, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedSittingInVehicle(ped, vehicle);
// by hash
const retval = Citizen.invokeNative('0xA808AA1D79230FC2', ped, vehicle, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xA808AA1D79230FC2, ped, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.