HAS_MODEL_LOADED
Checks if the specified model has loaded into memory.
Hash
0x1283B8B89DD5D1B6Runtime name
HasModelLoadedNamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x98A4EB5D89A0C952Signature
BOOL HAS_MODEL_LOADED(Hash model);Parameters
| Name | Type | Description |
|---|---|---|
model | Hash | — |
Returns BOOL
Description
Checks if the specified model has loaded into memory.
Usage
local retval = HasModelLoaded(model)
-- always works, by hash
local retval = Citizen.InvokeNative(0x1283B8B89DD5D1B6, model, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = HasModelLoaded(model);
// by hash
const retval = Citizen.invokeNative('0x1283B8B89DD5D1B6', model, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x1283B8B89DD5D1B6, model);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.