# SCRIPT::HAS_SCRIPT_LOADED

- **Hash:** `0xE97BD36574F8B0A6`
- **Namespace:** SCRIPT
- **Runtime name (Lua/JS):** `HasScriptLoaded`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/SCRIPT/HAS_SCRIPT_LOADED

## Signature

```c
BOOL HAS_SCRIPT_LOADED(const char* scriptName);
```

## Parameters

- `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

### Lua

```lua
local retval = HasScriptLoaded(scriptName)

-- always available, by hash
local retval = Citizen.InvokeNative(0xE97BD36574F8B0A6, scriptName, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = HasScriptLoaded(scriptName);

// by hash
const retval = Citizen.invokeNative('0xE97BD36574F8B0A6', scriptName, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xE97BD36574F8B0A6, scriptName);
```

*Sources: alloc8or RDR3 NativeDB.*
