_UI_PROMPT_CREATE
Creates and registers a prompt bound to the input inputHash with the label labelName, returning the prompt handle. Other parameters are not documented.
Signature
Prompt _UI_PROMPT_CREATE(Hash inputHash, const char* labelName, Any p2, Any p3, Any p4, int p5); // 0x29FA7910726C3889 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | inputHash | Hash |
| 2 | labelName | const char* |
| 3 | p2 | Any |
| 4 | p3 | Any |
| 5 | p4 | Any |
| 6 | p5 | int |
Facts
| Name | _UI_PROMPT_CREATE |
|---|---|
| Hash | 0x29FA7910726C3889 |
| Namespace | |
| Returns | Prompt |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local prompt = Citizen.InvokeNative(0x29FA7910726C3889, -- _UI_PROMPT_CREATE
GetHashKey("name"), -- Hash inputHash
"text", -- const char* labelName
0, -- Any p2
0, -- Any p3
0, -- Any p4
0, -- int p5
Citizen.ResultAsInteger()
)
print(prompt)const prompt = Citizen.invokeNative("0x29FA7910726C3889", // _UI_PROMPT_CREATE
GetHashKey("name"), // Hash inputHash
"text", // const char* labelName
0, // Any p2
0, // Any p3
0, // Any p4
0, // int p5
Citizen.resultAsInteger()
);
console.log(prompt)int prompt = Function.Call<int>((Hash)0x29FA7910726C3889, // _UI_PROMPT_CREATE
(uint)API.GetHashKey("name"), // Hash inputHash
"text", // const char* labelName
0, // Any p2
0, // Any p3
0, // Any p4
0 // int p5
);Related HUD natives
- _UI_PROMPT_CLEAR_PROMPT_PRIORITY_PREFERENCE
- _UI_PROMPT_DISABLE_PROMPT_TYPE_THIS_FRAME
- _UI_PROMPT_ENABLE_PROMPT_TYPE_THIS_FRAME
- _UI_PROMPT_SET_PROMPT_PRIORITY_PREFERENCE
- _UI_PROMPT_CLEAR_HORIZONTAL_ORIENTATION
- _UI_PROMPT_CONTEXT_SET_POINT
- _UI_PROMPT_CONTEXT_SET_RADIUS
- _UI_PROMPT_CONTEXT_SET_VOLUME
- _UI_PROMPT_ADD_GROUP_LINK
- _UI_PROMPT_ADD_GROUP_RETURN_LINK
- _UI_PROMPT_DELETE
- _UI_PROMPT_DISABLE_PROMPTS_THIS_FRAME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.