hasModelLoaded
HAS_MODEL_LOADED0x98A4EB5D89A0C952The GTA V native HAS_MODEL_LOADED of the STREAMING namespace, as LS:MP client scripts call it: the global function hasModelLoaded, in JavaScript and in Lua.
hasModelLoaded(model: Hash): booleanhasModelLoaded(model: Hash): booleanUsage
JavaScript
const result = hasModelLoaded(model);Lua
local result = hasModelLoaded(model)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
model | Hash | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Checks if the specified model has loaded into memory.
Reference
- Namespace
- Streaming STREAMING
- In the game
BOOL HAS_MODEL_LOADED(Hash model)- Hash
0x98A4EB5D89A0C952