REGISTER_INTERACTION_LOCKON_PROMPT
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | text | const char* |
| 3 | radius | float |
| 4 | p3 | float |
| 5 | flag | int |
| 6 | p5 | float |
| 7 | p6 | float |
| 8 | prompt | Prompt |
| 9 | p8 | BOOL |
| 10 | p9 | int |
Facts
| 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.
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// 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) {
// ...
}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
);Related MISC natives
- UNREGISTER_INTERACTION_LOCKON_PROMPT
- REMOVE_DISPATCH_SPAWN_BLOCKING_AREA
- REMOVE_POP_MULTIPLIER_AREA
- RESET_DISPATCH_IDEAL_SPAWN_DISTANCE
- RESET_END_USER_BENCHMARK
- RESET_SCRIPT_TIME_WITHIN_FRAME
- RESET_WANTED_RESPONSE_NUM_PEDS_TO_SPAWN
- _0x0358B8A41916C613
- _0x0730E518486DEEC3
- _0x0A487CC74A517FB5
- _0x0D0AE5081F88CFE1
- _0x1096603B519C905F
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.