{"hash":"0x0DD051B1BF4B8BD6","ns":"NETWORK","name":"_NETWORK_SESSION_GET_SESSION_REQUEST_RESULT","slug":"_NETWORK_SESSION_GET_SESSION_REQUEST_RESULT","official":false,"named":true,"luaName":"NetworkSessionGetSessionRequestResult","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"sessionRequestId","type":"Any*"},{"name":"p1","type":"int*"}],"summary":"Returns result of session request: 0 - NOT_FOUND 1 - IN_PROGRESS 2 - TIMEOUT 3 - PLAYER_OFFLINE 4 - GANG_MEMBERS_CHANGED 5 - PLAYER_CANCELLED 6 - PLAYER_SET_TOO_LARGE 7 - MATCH_ACCEPTED 8 - OTHER","descriptions":[{"source":"alloc8or","format":"text","body":"Returns result of session request:\n0 - NOT_FOUND\n1 - IN_PROGRESS\n2 - TIMEOUT\n3 - PLAYER_OFFLINE\n4 - GANG_MEMBERS_CHANGED\n5 - PLAYER_CANCELLED\n6 - PLAYER_SET_TOO_LARGE\n7 - MATCH_ACCEPTED\n8 - OTHER"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/NETWORK/_NETWORK_SESSION_GET_SESSION_REQUEST_RESULT","markdownUrl":"https://natives.borderlinerp.com/natives/NETWORK/_NETWORK_SESSION_GET_SESSION_REQUEST_RESULT.md","snippets":{"lua":"local retval, sessionRequestId, p1 = NetworkSessionGetSessionRequestResult()","luaInvoke":"local retval, sessionRequestId, p1 = Citizen.InvokeNative(0x0DD051B1BF4B8BD6, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ResultAsInteger())","js":"const [retval, sessionRequestId, p1] = NetworkSessionGetSessionRequestResult();","jsInvoke":"const [retval, sessionRequestId, p1] = Citizen.invokeNative('0x0DD051B1BF4B8BD6', Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var sessionRequestId = new OutputArgument();\nvar p1 = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x0DD051B1BF4B8BD6, sessionRequestId, p1);\n// sessionRequestId.GetResult<int>()\n// p1.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."]}}