The Lab
PED native

IS_PED_IN_MODEL

returns BOOL2 paramsbuild 1207

Returns true if ped is in a vehicle of model modelHash.

Signature

C
BOOL IS_PED_IN_MODEL(Ped ped, Hash modelHash); // 0x796D90EFB19AA332 b1207

Parameters

#NameType
1pedPed
2modelHashHash

Facts

Facts about IS_PED_IN_MODEL
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.

Lua
local result = Citizen.InvokeNative(0x796D90EFB19AA332, -- IS_PED_IN_MODEL
  PlayerPedId(), -- Ped ped
  GetHashKey("a_c_horse_arabian_white") -- Hash modelHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x796D90EFB19AA332", // IS_PED_IN_MODEL
  PlayerPedId(), // Ped ped
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
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
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.