The Lab
MISC native

IS_GAME_SESSION_STATE_MACHINE_IDLE

returns BOOL0 paramsbuild 1207

Returns true if the game session state machine is idle, meaning no session transition is in progress.

Signature

C
BOOL IS_GAME_SESSION_STATE_MACHINE_IDLE(); // 0xF9E7DBB39080640B b1207

Parameters

This native takes no parameters.

Facts

Facts about IS_GAME_SESSION_STATE_MACHINE_IDLE
Name
IS_GAME_SESSION_STATE_MACHINE_IDLE
Hash
0xF9E7DBB39080640B
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(0xF9E7DBB39080640B) -- IS_GAME_SESSION_STATE_MACHINE_IDLE
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xF9E7DBB39080640B", // IS_GAME_SESSION_STATE_MACHINE_IDLE
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xF9E7DBB39080640B); // IS_GAME_SESSION_STATE_MACHINE_IDLE
All MISC natives

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