# HUD::_UI_PROMPT_SET_ACTIVE_GROUP_THIS_FRAME

- **Hash:** `0xC65A45D4453C2627`
- **Namespace:** HUD
- **Runtime name (Lua/JS):** `UiPromptSetActiveGroupThisFrame`
- **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_ACTIVE_GROUP_THIS_FRAME

## Signature

```c
Any _UI_PROMPT_SET_ACTIVE_GROUP_THIS_FRAME(Hash hash, const char* name, int tabAmount, int tabDefaultIndex, int p4, Prompt prompt);
```

## Parameters

- `hash` (`Hash`)
- `name` (`const char*`)
- `tabAmount` (`int`)
- `tabDefaultIndex` (`int`)
- `p4` (`int`)
- `prompt` (`Prompt`)

## Returns

`Any`

## Description

Note: you must use VAR_STRING for p1 if string is not part of text database
tabAmount: specifies number of tabs in prompt group
tabDefaultIndex: specifies starting index
p3 if is set > 3 you can no longer press Q to change tab if there are more than one tab set in tabAmount

## Usage

### Lua

```lua
local retval = UiPromptSetActiveGroupThisFrame(hash, name, tabAmount, tabDefaultIndex, p4, prompt)

-- always available, by hash
local retval = Citizen.InvokeNative(0xC65A45D4453C2627, hash, name, tabAmount, tabDefaultIndex, p4, prompt, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = UiPromptSetActiveGroupThisFrame(hash, name, tabAmount, tabDefaultIndex, p4, prompt);

// by hash
const retval = Citizen.invokeNative('0xC65A45D4453C2627', hash, name, tabAmount, tabDefaultIndex, p4, prompt, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xC65A45D4453C2627, hash, name, tabAmount, tabDefaultIndex, p4, prompt);
```

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