# HUD::_UI_PROMPT_SET_ALLOWED_ACTION

- **Hash:** `0x565C1CE183CB0EAF`
- **Namespace:** HUD
- **Runtime name (Lua/JS):** `UiPromptSetAllowedAction`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/HUD/_UI_PROMPT_SET_ALLOWED_ACTION

## Signature

```c
void _UI_PROMPT_SET_ALLOWED_ACTION(Prompt prompt, Hash action);
```

## Parameters

- `prompt` (`Prompt`)
- `action` (`Hash`)

## Returns

`void`

## Usage

### Lua

```lua
UiPromptSetAllowedAction(prompt, action)

-- always available, by hash
Citizen.InvokeNative(0x565C1CE183CB0EAF, prompt, action)
```

### JavaScript

```js
UiPromptSetAllowedAction(prompt, action);

// by hash
Citizen.invokeNative('0x565C1CE183CB0EAF', prompt, action);
```

### C#

```csharp
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.*
