{"hash":"0x7FEE4F07C54B6B3C","ns":"NETWORK","name":"_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE","slug":"_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE","official":false,"named":true,"luaName":"NetworkGetDisplayNameFromHandle","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"gamerHandle","type":"Any*"},{"name":"displayName","type":"char*"}],"summary":"char displayName[64]; if (_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE(handle, displayName))","descriptions":[{"source":"alloc8or","format":"text","body":"Example:\n\nchar displayName[64];\nif (_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE(handle, displayName))\n{\n\t// use displayName\n}"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/NETWORK/_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE","markdownUrl":"https://natives.borderlinerp.com/natives/NETWORK/_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE.md","snippets":{"lua":"local retval, gamerHandle = NetworkGetDisplayNameFromHandle(displayName)","luaInvoke":"local retval, gamerHandle = Citizen.InvokeNative(0x7FEE4F07C54B6B3C, Citizen.PointerValueInt(), displayName, Citizen.ReturnResultAnyway())","js":"const [retval, gamerHandle] = NetworkGetDisplayNameFromHandle(displayName);","jsInvoke":"const [retval, gamerHandle] = Citizen.invokeNative('0x7FEE4F07C54B6B3C', Citizen.pointerValueInt(), displayName, Citizen.returnResultAnyway());","csharp":"var gamerHandle = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x7FEE4F07C54B6B3C, gamerHandle, displayName);\n// gamerHandle.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."]}}