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