The Lab
SCRIPT native

HAS_SCRIPT_LOADED

returns BOOL1 parambuild 1207

Returns true once the script scriptName requested with REQUEST_SCRIPT has finished loading.

Signature

C
BOOL HAS_SCRIPT_LOADED(const char* scriptName); // 0xE97BD36574F8B0A6 b1207

Parameters

#NameType
1scriptNameconst char*

Facts

Facts about HAS_SCRIPT_LOADED
Name
HAS_SCRIPT_LOADED
Hash
0xE97BD36574F8B0A6
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xE97BD36574F8B0A6, -- HAS_SCRIPT_LOADED
  "text" -- const char* scriptName
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xE97BD36574F8B0A6", // HAS_SCRIPT_LOADED
  "text", // const char* scriptName
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xE97BD36574F8B0A6, // HAS_SCRIPT_LOADED
  "text" // const char* scriptName
);
All SCRIPT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.