StreamingClient

hasModelLoaded

HAS_MODEL_LOADED0x98A4EB5D89A0C952

The 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.

SignatureJavaScript
hasModelLoaded(model: Hash): boolean
SignatureLua
hasModelLoaded(model: Hash): boolean

Usage

JavaScript
const result = hasModelLoaded(model);
Lua
local result = hasModelLoaded(model)

Parameters

ParameterTypeJavaScriptLua
modelHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference