The Lab
STREAMING native

HAS_MODEL_LOADED

returns BOOL1 parambuild 1207

Returns true once the model identified by model has finished loading and can be used to create entities.

Poll it after REQUEST_MODEL, then release the model with SET_MODEL_AS_NO_LONGER_NEEDED after spawning.

Signature

C
BOOL HAS_MODEL_LOADED(Hash model); // 0x1283B8B89DD5D1B6 b1207

Parameters

#NameType
1modelHash

Facts

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