_UI_PROMPT_SET_AMBIENT_GROUP_THIS_FRAME
Based on its name and signature, here is our best reading:
Displays an ambient prompt group attached to entity for the current frame, titled name.
Signature
Any _UI_PROMPT_SET_AMBIENT_GROUP_THIS_FRAME(Entity entity, float p1, int p2, int p3, Hash p4, const char* name, int p6); // 0x315C81D760609108 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | p1 | float |
| 3 | p2 | int |
| 4 | p3 | int |
| 5 | p4 | Hash |
| 6 | name | const char* |
| 7 | p6 | int |
Facts
| Name | _UI_PROMPT_SET_AMBIENT_GROUP_THIS_FRAME |
|---|---|
| Hash | 0x315C81D760609108 |
| Namespace | |
| Returns | Any |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x315C81D760609108, -- _UI_PROMPT_SET_AMBIENT_GROUP_THIS_FRAME
PlayerPedId(), -- Entity entity
0.0, -- float p1
0, -- int p2
0, -- int p3
GetHashKey("name"), -- Hash p4
"text", -- const char* name
0, -- int p6
Citizen.ResultAsInteger()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x315C81D760609108", // _UI_PROMPT_SET_AMBIENT_GROUP_THIS_FRAME
PlayerPedId(), // Entity entity
0.0, // float p1
0, // int p2
0, // int p3
GetHashKey("name"), // Hash p4
"text", // const char* name
0, // int p6
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x315C81D760609108, // _UI_PROMPT_SET_AMBIENT_GROUP_THIS_FRAME
API.PlayerPedId(), // Entity entity
0.0f, // float p1
0, // int p2
0, // int p3
(uint)API.GetHashKey("name"), // Hash p4
"text", // const char* name
0 // int p6
);Related HUD natives
- _UI_PROMPT_SET_ACTIVE_GROUP_THIS_FRAME
- _UI_PROMPT_DISABLE_PROMPT_TYPE_THIS_FRAME
- _UI_PROMPT_ENABLE_PROMPT_TYPE_THIS_FRAME
- _UI_PROMPT_SET_GROUP
- _UI_PROMPT_SET_PROMPT_PRIORITY_PREFERENCE
- _UI_PROMPT_DISABLE_PROMPTS_THIS_FRAME
- _UI_PROMPT_DOES_AMBIENT_GROUP_EXIST
- _UI_PROMPT_SET_ALLOWED_ACTION
- _UI_PROMPT_SET_ATTRIBUTE
- _UI_PROMPT_SET_BEAT_MODE
- _UI_PROMPT_SET_BEAT_MODE_GRAYED_OUT
- _UI_PROMPT_SET_CONTROL_ACTION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.