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