{"hash":"0xB5352B7494A08258","ns":"HUD","name":"_UI_PROMPT_SET_CONTROL_ACTION","slug":"_UI_PROMPT_SET_CONTROL_ACTION","official":false,"named":true,"luaName":"UiPromptSetControlAction","game":"rdr3","apiset":"client","returnType":"Any","params":[{"name":"prompt","type":"Prompt"},{"name":"action","type":"Hash"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/HUD/_UI_PROMPT_SET_CONTROL_ACTION","markdownUrl":"https://natives.borderlinerp.com/natives/HUD/_UI_PROMPT_SET_CONTROL_ACTION.md","snippets":{"lua":"local retval = UiPromptSetControlAction(prompt, action)","luaInvoke":"local retval = Citizen.InvokeNative(0xB5352B7494A08258, prompt, action, Citizen.ResultAsInteger())","js":"const retval = UiPromptSetControlAction(prompt, action);","jsInvoke":"const retval = Citizen.invokeNative('0xB5352B7494A08258', prompt, action, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xB5352B7494A08258, prompt, action);","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 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."]}}