The Lab
HUD native

_UI_PROMPT_SET_CONTROL_ACTION

returns Any2 paramsbuild 1207

Binds prompt to the control action, which sets the input shown and checked.

Signature

C
Any _UI_PROMPT_SET_CONTROL_ACTION(Prompt prompt, Hash action); // 0xB5352B7494A08258 b1207

Parameters

#NameType
1promptPrompt
2actionHash

Facts

Facts about _UI_PROMPT_SET_CONTROL_ACTION
Name
_UI_PROMPT_SET_CONTROL_ACTION
Hash
0xB5352B7494A08258
Namespace
Returns
Any
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xB5352B7494A08258, -- _UI_PROMPT_SET_CONTROL_ACTION
  0, -- Prompt prompt
  GetHashKey("name"), -- Hash action
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xB5352B7494A08258", // _UI_PROMPT_SET_CONTROL_ACTION
  0, // Prompt prompt
  GetHashKey("name"), // Hash action
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xB5352B7494A08258, // _UI_PROMPT_SET_CONTROL_ACTION
  0, // Prompt prompt
  (uint)API.GetHashKey("name") // Hash action
);
All HUD natives

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