{"hash":"0x99ABE9BF9DADA162","ns":"NETWORK","name":"_NETWORK_CAN_ADD_FRIEND","slug":"_NETWORK_CAN_ADD_FRIEND","official":false,"named":true,"luaName":"NetworkCanAddFriend","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"gamerHandle","type":"Any*"}],"summary":"On PC this returns true if gamerHandle is a valid handle.","descriptions":[{"source":"alloc8or","format":"text","body":"On PC this returns true if gamerHandle is a valid handle."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/NETWORK/_NETWORK_CAN_ADD_FRIEND","markdownUrl":"https://natives.borderlinerp.com/natives/NETWORK/_NETWORK_CAN_ADD_FRIEND.md","snippets":{"lua":"local retval, gamerHandle = NetworkCanAddFriend(gamerHandle)","luaInvoke":"local retval, gamerHandle = Citizen.InvokeNative(0x99ABE9BF9DADA162, Citizen.PointerValueIntInitialized(gamerHandle), Citizen.ReturnResultAnyway())","js":"const [retval, gamerHandle] = NetworkCanAddFriend(gamerHandle);","jsInvoke":"const [retval, gamerHandle] = Citizen.invokeNative('0x99ABE9BF9DADA162', Citizen.pointerValueIntInitialized(gamerHandle), Citizen.returnResultAnyway());","csharp":"var gamerHandle = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x99ABE9BF9DADA162, gamerHandle);\n// gamerHandle.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}