HAS_SCRIPT_WITH_NAME_HASH_LOADED
Hash
0xA5D8E0C2F3C7EEBCRuntime name
HasScriptWithNameHashLoadedNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5F0F0C783EB16C04Signature
BOOL HAS_SCRIPT_WITH_NAME_HASH_LOADED(Hash scriptHash);Parameters
| Name | Type | Description |
|---|---|---|
scriptHash | Hash | — |
Returns BOOL
Usage
local retval = HasScriptWithNameHashLoaded(scriptHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA5D8E0C2F3C7EEBC, scriptHash, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = HasScriptWithNameHashLoaded(scriptHash);
// by hash
const retval = Citizen.invokeNative('0xA5D8E0C2F3C7EEBC', scriptHash, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xA5D8E0C2F3C7EEBC, scriptHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.