The Lab
HUD native

_UI_PROMPT_SET_AMBIENT_GROUP_THIS_FRAME

returns Any7 paramsbuild 1207

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

C
Any _UI_PROMPT_SET_AMBIENT_GROUP_THIS_FRAME(Entity entity, float p1, int p2, int p3, Hash p4, const char* name, int p6); // 0x315C81D760609108 b1207

Parameters

#NameType
1entityEntity
2p1float
3p2int
4p3int
5p4Hash
6nameconst char*
7p6int

Facts

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

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

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