RedM Natives

_UI_PROMPT_SET_ALLOWED_ACTION

Hash0x565C1CE183CB0EAF
Runtime nameUiPromptSetAllowedAction
NamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _UI_PROMPT_SET_ALLOWED_ACTION(Prompt prompt, Hash action);

Parameters

NameTypeDescription
promptPrompt—
actionHash—

Returns void

Usage

Lua
UiPromptSetAllowedAction(prompt, action)

-- always works, by hash
Citizen.InvokeNative(0x565C1CE183CB0EAF, prompt, action)
JavaScript and C#
JavaScript
UiPromptSetAllowedAction(prompt, action);

// by hash
Citizen.invokeNative('0x565C1CE183CB0EAF', prompt, action);
C#
Function.Call((Hash)0x565C1CE183CB0EAF, prompt, action);
  • 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.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.