The Lab
MINIGAME native

_MINIGAME_IS_CONNECTED_TO_SERVER

returns Any1 parambuild 1207

Based on its name and signature, here is our best reading:

Returns whether the client is connected to the minigame server.

Signature

C
Any _MINIGAME_IS_CONNECTED_TO_SERVER(Any p0); // 0x2A0C4736AC5AF0CE b1207

Parameters

#NameType
1p0Any

Facts

Facts about _MINIGAME_IS_CONNECTED_TO_SERVER
Name
_MINIGAME_IS_CONNECTED_TO_SERVER
Hash
0x2A0C4736AC5AF0CE
Namespace
Returns
Any
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(0x2A0C4736AC5AF0CE, -- _MINIGAME_IS_CONNECTED_TO_SERVER
  0, -- Any p0
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x2A0C4736AC5AF0CE", // _MINIGAME_IS_CONNECTED_TO_SERVER
  0, // Any p0
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x2A0C4736AC5AF0CE, // _MINIGAME_IS_CONNECTED_TO_SERVER
  0 // Any p0
);
All MINIGAME natives

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