The Lab
HUD native

_UI_PROMPT_GET_GROUP_ID_FOR_TARGET_ENTITY

returns int1 parambuild 1207

Returns the prompt group id used when targeting entity, so custom prompts can be added to its target menu.

Pass the result to _UI_PROMPT_SET_GROUP to show your prompt when the player focuses the entity.

Signature

C
int _UI_PROMPT_GET_GROUP_ID_FOR_TARGET_ENTITY(Entity entity); // 0xB796970BD125FCE8 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about _UI_PROMPT_GET_GROUP_ID_FOR_TARGET_ENTITY
Name
_UI_PROMPT_GET_GROUP_ID_FOR_TARGET_ENTITY
Hash
0xB796970BD125FCE8
Namespace
Returns
int
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(0xB796970BD125FCE8, -- _UI_PROMPT_GET_GROUP_ID_FOR_TARGET_ENTITY
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xB796970BD125FCE8", // _UI_PROMPT_GET_GROUP_ID_FOR_TARGET_ENTITY
  PlayerPedId(), // Entity entity
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xB796970BD125FCE8, // _UI_PROMPT_GET_GROUP_ID_FOR_TARGET_ENTITY
  API.PlayerPedId() // Entity entity
);
All HUD natives

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