The Lab
MISC native

REGISTER_INTERACTION_LOCKON_PROMPT

returns BOOL10 paramsbuild 1207

Registers a lock-on interaction prompt on entity with label text, active within radius. Returns true on success.

Remove it with UNREGISTER_INTERACTION_LOCKON_PROMPT.

Signature

C
BOOL REGISTER_INTERACTION_LOCKON_PROMPT(Entity entity, const char* text, float radius, float p3, int flag, float p5, float p6, Prompt prompt, BOOL p8, int p9); // 0x870708A6E147A9AD b1207

Parameters

#NameType
1entityEntity
2textconst char*
3radiusfloat
4p3float
5flagint
6p5float
7p6float
8promptPrompt
9p8BOOL
10p9int

Facts

Facts about REGISTER_INTERACTION_LOCKON_PROMPT
Name
REGISTER_INTERACTION_LOCKON_PROMPT
Hash
0x870708A6E147A9AD
Namespace
Returns
BOOL
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(0x870708A6E147A9AD, -- REGISTER_INTERACTION_LOCKON_PROMPT
  PlayerPedId(), -- Entity entity
  "text", -- const char* text
  0.0, -- float radius
  0.0, -- float p3
  0, -- int flag
  0.0, -- float p5
  0.0, -- float p6
  0, -- Prompt prompt
  false, -- BOOL p8
  0 -- int p9
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x870708A6E147A9AD", // REGISTER_INTERACTION_LOCKON_PROMPT
  PlayerPedId(), // Entity entity
  "text", // const char* text
  0.0, // float radius
  0.0, // float p3
  0, // int flag
  0.0, // float p5
  0.0, // float p6
  0, // Prompt prompt
  false, // BOOL p8
  0, // int p9
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x870708A6E147A9AD, // REGISTER_INTERACTION_LOCKON_PROMPT
  API.PlayerPedId(), // Entity entity
  "text", // const char* text
  0.0f, // float radius
  0.0f, // float p3
  0, // int flag
  0.0f, // float p5
  0.0f, // float p6
  0, // Prompt prompt
  false, // BOOL p8
  0 // int p9
);
All MISC natives

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