ScriptClient

doesScriptWithNameHashExist

DOES_SCRIPT_WITH_NAME_HASH_EXIST0xF86AA3C56BA31381

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

SignatureJavaScript
doesScriptWithNameHashExist(scriptHash: Hash): boolean
SignatureLua
doesScriptWithNameHashExist(scriptHash: Hash): boolean

Usage

JavaScript
const result = doesScriptWithNameHashExist(scriptHash);
Lua
local result = doesScriptWithNameHashExist(scriptHash)

Parameters

ParameterTypeJavaScriptLua
scriptHashHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Script SCRIPT
In the game
BOOL DOES_SCRIPT_WITH_NAME_HASH_EXIST(Hash scriptHash)
Hash
0xF86AA3C56BA31381
Formerly
_DOES_SCRIPT_WITH_NAME_HASH_EXIST

Open in the interactive natives reference