{"hash":"0xE24E957294241444","ns":"UIEVENTS","name":"EVENTS_UI_GET_MESSAGE","slug":"EVENTS_UI_GET_MESSAGE","official":true,"named":true,"luaName":"EventsUiGetMessage","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"hash","type":"Hash"},{"name":"eventData","type":"Any*"}],"summary":"alignas(8) eUIScriptEventType eventType; // alignas(8) int intParam; alignas(8) Hash hashParam; alignas(8) Hash datastoreParam; Old name: _EVENT_MANAGER_GET_EVENT","descriptions":[{"source":"alloc8or","format":"text","body":"eventData:\nstruct UI_SCRIPT_EVENT\n{\n\talignas(8) eUIScriptEventType eventType; // https://alloc8or.re/rdr3/doc/enums/eUIScriptEventType.txt\n\talignas(8) int intParam;\n\talignas(8) Hash hashParam;\n\talignas(8) Hash datastoreParam;\n};\n\nOld name: _EVENT_MANAGER_GET_EVENT"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/UIEVENTS/EVENTS_UI_GET_MESSAGE","markdownUrl":"https://natives.borderlinerp.com/natives/UIEVENTS/EVENTS_UI_GET_MESSAGE.md","snippets":{"lua":"local retval, eventData = EventsUiGetMessage(hash, eventData)","luaInvoke":"local retval, eventData = Citizen.InvokeNative(0xE24E957294241444, hash, Citizen.PointerValueIntInitialized(eventData), Citizen.ReturnResultAnyway())","js":"const [retval, eventData] = EventsUiGetMessage(hash, eventData);","jsInvoke":"const [retval, eventData] = Citizen.invokeNative('0xE24E957294241444', hash, Citizen.pointerValueIntInitialized(eventData), Citizen.returnResultAnyway());","csharp":"var eventData = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xE24E957294241444, hash, eventData);\n// eventData.GetResult<int>()","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}