The Lab
NETWORK native

NETWORK_IS_FRIEND

returns BOOL1 parambuild 1207

Returns true if the gamer is a friend of the local player.

Signature

C
BOOL NETWORK_IS_FRIEND(Any* gamerHandle); // 0x1A24A179F9B31654 b1207

Parameters

#NameType
1gamerHandleAny* (out pointer)

Facts

Facts about NETWORK_IS_FRIEND
Name
NETWORK_IS_FRIEND
Hash
0x1A24A179F9B31654
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, gamerHandle = Citizen.InvokeNative(0x1A24A179F9B31654, -- NETWORK_IS_FRIEND
  Citizen.PointerValueInt(), -- Any* gamerHandle
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, gamerHandle] = Citizen.invokeNative("0x1A24A179F9B31654", // NETWORK_IS_FRIEND
  Citizen.pointerValueInt(), // Any* gamerHandle
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var gamerHandleArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x1A24A179F9B31654, // NETWORK_IS_FRIEND
  gamerHandleArg // Any* gamerHandle
);
int gamerHandle = gamerHandleArg.GetResult<int>();
All NETWORK natives

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