ScriptClient

doesScriptExist

DOES_SCRIPT_EXIST0xFC04745FBE67C19A

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

SignatureJavaScript
doesScriptExist(scriptName: string): boolean
SignatureLua
doesScriptExist(scriptName: string): boolean

Usage

JavaScript
const result = doesScriptExist(scriptName);
Lua
local result = doesScriptExist(scriptName)

Parameters

ParameterTypeJavaScriptLua
scriptNamestringstringstring

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Script SCRIPT
In the game
BOOL DOES_SCRIPT_EXIST(const char* scriptName)
Hash
0xFC04745FBE67C19A

Open in the interactive natives reference