IS_PED_SITTING_IN_VEHICLE
Returns true if ped is seated in vehicle.
Signature
BOOL IS_PED_SITTING_IN_VEHICLE(Ped ped, Vehicle vehicle); // 0xA808AA1D79230FC2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | vehicle | Vehicle |
Facts
| Name | IS_PED_SITTING_IN_VEHICLE |
|---|---|
| Hash | 0xA808AA1D79230FC2 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xA808AA1D79230FC2, -- IS_PED_SITTING_IN_VEHICLE
PlayerPedId(), -- Ped ped
0 -- Vehicle vehicle
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xA808AA1D79230FC2", // IS_PED_SITTING_IN_VEHICLE
PlayerPedId(), // Ped ped
0, // Vehicle vehicle
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xA808AA1D79230FC2, // IS_PED_SITTING_IN_VEHICLE
API.PlayerPedId(), // Ped ped
0 // Vehicle vehicle
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.