RedM Natives

SET_GAME_PAUSED

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.

Hash0xFAEC088D28B1DE4A
Runtime nameSetGamePaused
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x577D1284D6873711

Signature

void SET_GAME_PAUSED(BOOL toggle);

Parameters

NameTypeDescription
toggleBOOL—

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
SetGamePaused(toggle)

-- always works, by hash
Citizen.InvokeNative(0xFAEC088D28B1DE4A, toggle)
JavaScript and C#
JavaScript
SetGamePaused(toggle);

// by hash
Citizen.invokeNative('0xFAEC088D28B1DE4A', toggle);
C#
Function.Call((Hash)0xFAEC088D28B1DE4A, toggle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.