doesScriptExist
DOES_SCRIPT_EXIST0xFC04745FBE67C19AThe GTA V native DOES_SCRIPT_EXIST of the SCRIPT namespace, as LS:MP client scripts call it: the global function doesScriptExist, in JavaScript and in Lua.
doesScriptExist(scriptName: string): booleandoesScriptExist(scriptName: string): booleanUsage
JavaScript
const result = doesScriptExist(scriptName);Lua
local result = doesScriptExist(scriptName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scriptName | string | string | string |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Script SCRIPT
- In the game
BOOL DOES_SCRIPT_EXIST(const char* scriptName)- Hash
0xFC04745FBE67C19A