DOES_SCRIPT_WITH_NAME_HASH_EXIST
Hash
0xA34E89749F628284Runtime name
DoesScriptWithNameHashExistNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xF86AA3C56BA31381Signature
BOOL DOES_SCRIPT_WITH_NAME_HASH_EXIST(Hash scriptHash);Parameters
| Name | Type | Description |
|---|---|---|
scriptHash | Hash | — |
Returns BOOL
Usage
local retval = DoesScriptWithNameHashExist(scriptHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA34E89749F628284, scriptHash, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesScriptWithNameHashExist(scriptHash);
// by hash
const retval = Citizen.invokeNative('0xA34E89749F628284', scriptHash, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xA34E89749F628284, 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.