{"hash":"0x23D9C1F2E4098EDC","ns":"NETWORK","name":"_NETWORK_SESSION_REQUEST_SESSION_ON_CALL","slug":"_NETWORK_SESSION_REQUEST_SESSION_ON_CALL","official":false,"named":true,"luaName":"NetworkSessionRequestSessionOnCall","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"flags","type":"int"},{"name":"category","type":"int"},{"name":"p2","type":"Any*"},{"name":"userHash","type":"int"},{"name":"sessionRequestId","type":"Any*"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"category:\nenum eOnCallType\n{\n\tNETWORK_SESSION_REQUEST_ON_CALL_TYPE_STORY = 2,\n\tNETWORK_SESSION_REQUEST_ON_CALL_TYPE_MATCH = 3\n};"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/NETWORK/_NETWORK_SESSION_REQUEST_SESSION_ON_CALL","markdownUrl":"https://natives.borderlinerp.com/natives/NETWORK/_NETWORK_SESSION_REQUEST_SESSION_ON_CALL.md","snippets":{"lua":"local retval, p2, sessionRequestId = NetworkSessionRequestSessionOnCall(flags, category, userHash)","luaInvoke":"local retval, p2, sessionRequestId = Citizen.InvokeNative(0x23D9C1F2E4098EDC, flags, category, Citizen.PointerValueInt(), userHash, Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())","js":"const [retval, p2, sessionRequestId] = NetworkSessionRequestSessionOnCall(flags, category, userHash);","jsInvoke":"const [retval, p2, sessionRequestId] = Citizen.invokeNative('0x23D9C1F2E4098EDC', flags, category, Citizen.pointerValueInt(), userHash, Citizen.pointerValueInt(), Citizen.returnResultAnyway());","csharp":"var p2 = new OutputArgument();\nvar sessionRequestId = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x23D9C1F2E4098EDC, flags, category, p2, userHash, sessionRequestId);\n// p2.GetResult<int>()\n// sessionRequestId.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","`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."]}}