The Lab
STREAMING native

IS_MODEL_IN_CDIMAGE

returns BOOL1 parambuild 1207

Returns true if the model exists in the game's loaded archives.

Check it before REQUEST_MODEL to catch invalid model names.

Signature

C
BOOL IS_MODEL_IN_CDIMAGE(Hash model); // 0xD6F3B6D7716CFF8E b1207

Parameters

#NameType
1modelHash

Facts

Facts about IS_MODEL_IN_CDIMAGE
Name
IS_MODEL_IN_CDIMAGE
Hash
0xD6F3B6D7716CFF8E
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(0xD6F3B6D7716CFF8E, -- IS_MODEL_IN_CDIMAGE
  GetHashKey("a_c_horse_arabian_white") -- Hash model
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xD6F3B6D7716CFF8E", // IS_MODEL_IN_CDIMAGE
  GetHashKey("a_c_horse_arabian_white"), // Hash model
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xD6F3B6D7716CFF8E, // IS_MODEL_IN_CDIMAGE
  (uint)API.GetHashKey("a_c_horse_arabian_white") // Hash model
);
All STREAMING natives

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