The Lab
HUD native

_UI_PROMPT_CREATE

returns Prompt6 paramsbuild 1207

Creates and registers a prompt bound to the input inputHash with the label labelName, returning the prompt handle. Other parameters are not documented.

Signature

C
Prompt _UI_PROMPT_CREATE(Hash inputHash, const char* labelName, Any p2, Any p3, Any p4, int p5); // 0x29FA7910726C3889 b1207

Parameters

#NameType
1inputHashHash
2labelNameconst char*
3p2Any
4p3Any
5p4Any
6p5int

Facts

Facts about _UI_PROMPT_CREATE
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.

Lua
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)
JavaScript
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)
C#
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
);
All HUD natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.