hasScriptWithNameHashLoaded
HAS_SCRIPT_WITH_NAME_HASH_LOADED0x5F0F0C783EB16C04The GTA V native HAS_SCRIPT_WITH_NAME_HASH_LOADED of the SCRIPT namespace, as LS:MP client scripts call it: the global function hasScriptWithNameHashLoaded, in JavaScript and in Lua.
hasScriptWithNameHashLoaded(scriptHash: Hash): booleanhasScriptWithNameHashLoaded(scriptHash: Hash): booleanUsage
JavaScript
const result = hasScriptWithNameHashLoaded(scriptHash);Lua
local result = hasScriptWithNameHashLoaded(scriptHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scriptHash | Hash | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Script SCRIPT
- In the game
BOOL HAS_SCRIPT_WITH_NAME_HASH_LOADED(Hash scriptHash)- Hash
0x5F0F0C783EB16C04- Formerly
_HAS_STREAMED_SCRIPT_LOADED