{"hash":"0x39A8EF7AF29A192C","ns":"NETWORK","name":"NETWORK_SESSION_REQUEST_SESSION_PRIVATE","slug":"NETWORK_SESSION_REQUEST_SESSION_PRIVATE","official":true,"named":true,"luaName":"NetworkSessionRequestSessionPrivate","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"flags","type":"int"},{"name":"numPlayers","type":"int"},{"name":"userHash","type":"int"},{"name":"sessionRequestId","type":"Any*"}],"summary":"Session flag 'SF_PRIVATE' is set internally p1 represents max amount of players in private session","descriptions":[{"source":"alloc8or","format":"text","body":"Session flag 'SF_PRIVATE' is set internally\np1 represents max amount of players in private session"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/NETWORK/NETWORK_SESSION_REQUEST_SESSION_PRIVATE","markdownUrl":"https://natives.borderlinerp.com/natives/NETWORK/NETWORK_SESSION_REQUEST_SESSION_PRIVATE.md","snippets":{"lua":"local retval, sessionRequestId = NetworkSessionRequestSessionPrivate(flags, numPlayers, userHash, sessionRequestId)","luaInvoke":"local retval, sessionRequestId = Citizen.InvokeNative(0x39A8EF7AF29A192C, flags, numPlayers, userHash, Citizen.PointerValueIntInitialized(sessionRequestId), Citizen.ReturnResultAnyway())","js":"const [retval, sessionRequestId] = NetworkSessionRequestSessionPrivate(flags, numPlayers, userHash, sessionRequestId);","jsInvoke":"const [retval, sessionRequestId] = Citizen.invokeNative('0x39A8EF7AF29A192C', flags, numPlayers, userHash, Citizen.pointerValueIntInitialized(sessionRequestId), Citizen.returnResultAnyway());","csharp":"var sessionRequestId = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x39A8EF7AF29A192C, flags, numPlayers, userHash, sessionRequestId);\n// sessionRequestId.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."]}}