The Lab
NETWORK native

_NETWORK_SESSION_ARE_SESSION_IDS_EQUAL

returns BOOL2 paramsbuild 1311

Returns true if the two session ids are equal.

Signature

C
BOOL _NETWORK_SESSION_ARE_SESSION_IDS_EQUAL(Any* sessionId1, Any* sessionId2); // 0x4DEC5000F7B508F0 b1311

Parameters

#NameType
1sessionId1Any* (out pointer)
2sessionId2Any* (out pointer)

Facts

Facts about _NETWORK_SESSION_ARE_SESSION_IDS_EQUAL
Name
_NETWORK_SESSION_ARE_SESSION_IDS_EQUAL
Hash
0x4DEC5000F7B508F0
Namespace
Returns
BOOL
Game build
1311

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, sessionId1, sessionId2 = Citizen.InvokeNative(0x4DEC5000F7B508F0, -- _NETWORK_SESSION_ARE_SESSION_IDS_EQUAL
  Citizen.PointerValueInt(), -- Any* sessionId1
  Citizen.PointerValueInt(), -- Any* sessionId2
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, sessionId1, sessionId2] = Citizen.invokeNative("0x4DEC5000F7B508F0", // _NETWORK_SESSION_ARE_SESSION_IDS_EQUAL
  Citizen.pointerValueInt(), // Any* sessionId1
  Citizen.pointerValueInt(), // Any* sessionId2
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var sessionId1Arg = new OutputArgument();
var sessionId2Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x4DEC5000F7B508F0, // _NETWORK_SESSION_ARE_SESSION_IDS_EQUAL
  sessionId1Arg, // Any* sessionId1
  sessionId2Arg // Any* sessionId2
);
int sessionId1 = sessionId1Arg.GetResult<int>();
int sessionId2 = sessionId2Arg.GetResult<int>();
All NETWORK natives

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