IS_PED_IN_MODEL
Returns true if ped is in a vehicle of model modelHash.
Signature
BOOL IS_PED_IN_MODEL(Ped ped, Hash modelHash); // 0x796D90EFB19AA332 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | modelHash | Hash |
Facts
| Name | IS_PED_IN_MODEL |
|---|---|
| Hash | 0x796D90EFB19AA332 |
| 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(0x796D90EFB19AA332, -- IS_PED_IN_MODEL
PlayerPedId(), -- Ped ped
GetHashKey("a_c_horse_arabian_white") -- Hash modelHash
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x796D90EFB19AA332", // IS_PED_IN_MODEL
PlayerPedId(), // Ped ped
GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x796D90EFB19AA332, // IS_PED_IN_MODEL
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("a_c_horse_arabian_white") // Hash modelHash
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.