_UI_PROMPT_SET_CONTROL_ACTION
Hash
0xB5352B7494A08258Runtime name
UiPromptSetControlActionNamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Any _UI_PROMPT_SET_CONTROL_ACTION(Prompt prompt, Hash action);Parameters
| Name | Type | Description |
|---|---|---|
prompt | Prompt | — |
action | Hash | — |
Returns Any
Usage
local retval = UiPromptSetControlAction(prompt, action)
-- always works, by hash
local retval = Citizen.InvokeNative(0xB5352B7494A08258, prompt, action, Citizen.ResultAsInteger())JavaScript and C#
const retval = UiPromptSetControlAction(prompt, action);
// by hash
const retval = Citizen.invokeNative('0xB5352B7494A08258', prompt, action, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xB5352B7494A08258, prompt, action);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.