_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
Hash
0xC65A45D4453C2627Runtime name
UiPromptSetActiveGroupThisFrameNamespaceHUD
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
| Name | Type | Description |
|---|---|---|
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
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#
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());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.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.