RedM Natives

_UI_PROMPT_SET_ACTIVE_GROUP_THIS_FRAME

p3 if is set > 3 you can no longer press Q to change tab if there are more than one tab set in tabAmount

Hash0xC65A45D4453C2627
Runtime nameUiPromptSetActiveGroupThisFrame
NamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207

Signature

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

Parameters

NameTypeDescription
hashHash—
nameconst char*—
tabAmountint—
tabDefaultIndexint—
p4int—
promptPrompt—

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
local retval = UiPromptSetActiveGroupThisFrame(hash, name, tabAmount, tabDefaultIndex, p4, prompt)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC65A45D4453C2627, hash, name, tabAmount, tabDefaultIndex, p4, prompt, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
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#
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

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