# MISC::SET_GAME_PAUSED

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

## Signature

```c
void SET_GAME_PAUSED(BOOL toggle);
```

## Parameters

- `toggle` (`BOOL`)

## Returns

`void`

## Description

Make sure to call this from the correct thread if you're using multiple threads because all other threads except the one which is calling SET_GAME_PAUSED will be paused.

## Usage

### Lua

```lua
SetGamePaused(toggle)

-- always available, by hash
Citizen.InvokeNative(0xFAEC088D28B1DE4A, toggle)
```

### JavaScript

```js
SetGamePaused(toggle);

// by hash
Citizen.invokeNative('0xFAEC088D28B1DE4A', toggle);
```

### C#

```csharp
Function.Call((Hash)0xFAEC088D28B1DE4A, toggle);
```

*Sources: alloc8or RDR3 NativeDB.*
