# HUD::_UI_PROMPT_SET_ATTRIBUTE

- **Hash:** `0x560E76D5E2E1803F`
- **Namespace:** HUD
- **Runtime name (Lua/JS):** `UiPromptSetAttribute`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/HUD/_UI_PROMPT_SET_ATTRIBUTE

## Signature

```c
void _UI_PROMPT_SET_ATTRIBUTE(Prompt prompt, int attribute, BOOL enabled);
```

## Parameters

- `prompt` (`Prompt`)
- `attribute` (`int`)
- `enabled` (`BOOL`)

## Returns

`void`

## Description

attribute: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eUIPromptAttribute

## Usage

### Lua

```lua
UiPromptSetAttribute(prompt, attribute, enabled)

-- always available, by hash
Citizen.InvokeNative(0x560E76D5E2E1803F, prompt, attribute, enabled)
```

### JavaScript

```js
UiPromptSetAttribute(prompt, attribute, enabled);

// by hash
Citizen.invokeNative('0x560E76D5E2E1803F', prompt, attribute, enabled);
```

### C#

```csharp
Function.Call((Hash)0x560E76D5E2E1803F, prompt, attribute, enabled);
```

- 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.

## Related enums

- [eUIPromptAttribute](https://natives.borderlinerp.com/enums/eUIPromptAttribute.md) — 45 values

*Sources: alloc8or RDR3 NativeDB.*
