# SCRIPT::_IS_BACKGROUND_SCRIPT

- **Hash:** `0x20B7F69B40C6B755`
- **Namespace:** SCRIPT
- **Runtime name (Lua/JS):** `IsBackgroundScript`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/SCRIPT/_IS_BACKGROUND_SCRIPT

## Signature

```c
BOOL _IS_BACKGROUND_SCRIPT(int threadId);
```

## Parameters

- `threadId` (`int`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = IsBackgroundScript(threadId)

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

### JavaScript

```js
const retval = IsBackgroundScript(threadId);

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

### C#

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

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
