The Lab
NETWORK native

_NETWORK_CAN_ADD_FRIEND

returns BOOL1 parambuild 1207

Returns true if the gamer can be added as a friend.

Signature

C
BOOL _NETWORK_CAN_ADD_FRIEND(Any* gamerHandle); // 0x99ABE9BF9DADA162 b1207

Parameters

#NameType
1gamerHandleAny* (out pointer)

Facts

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