The Lab
PED native

IS_PED_MODEL

returns BOOL2 paramsbuild 1207

Returns true if ped uses the model modelHash.

Signature

C
BOOL IS_PED_MODEL(Ped ped, Hash modelHash); // 0xC9D55B1A358A5BF7 b1207

Parameters

#NameType
1pedPed
2modelHashHash

Facts

Facts about IS_PED_MODEL
Name
IS_PED_MODEL
Hash
0xC9D55B1A358A5BF7
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(0xC9D55B1A358A5BF7, -- IS_PED_MODEL
  PlayerPedId(), -- Ped ped
  GetHashKey("a_c_horse_arabian_white") -- Hash modelHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xC9D55B1A358A5BF7", // IS_PED_MODEL
  PlayerPedId(), // Ped ped
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xC9D55B1A358A5BF7, // IS_PED_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.