HAS_SCRIPT_LOADED
Returns if a script has been loaded into the game.
Hash
0xE97BD36574F8B0A6Runtime name
HasScriptLoadedNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xE6CC9F3BA0FB9EF1Signature
BOOL HAS_SCRIPT_LOADED(const char* scriptName);Parameters
| Name | Type | Description |
|---|---|---|
scriptName | const char* | — |
Returns BOOL
Description
Returns if a script has been loaded into the game. Used to see if a script was loaded after requesting.
Usage
local retval = HasScriptLoaded(scriptName)
-- always works, by hash
local retval = Citizen.InvokeNative(0xE97BD36574F8B0A6, scriptName, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = HasScriptLoaded(scriptName);
// by hash
const retval = Citizen.invokeNative('0xE97BD36574F8B0A6', scriptName, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xE97BD36574F8B0A6, scriptName);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.