RedM Natives

REGISTER_INTERACTION_LOCKON_PROMPT

p3 is usually the same value of radius p8 determines whether the ILO prompt is a lock on prompt with RMB

Hash0x870708A6E147A9AD
Runtime nameRegisterInteractionLockonPrompt
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207

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);

Parameters

NameTypeDescription
entityEntity—
textconst char*—
radiusfloat—
p3float—
flagint—
p5float—
p6float—
promptPrompt—
p8BOOL—
p9int—

Returns BOOL

Description

p3 is usually the same value of radius
p8 determines whether the ILO prompt is a lock on prompt with RMB

Usage

Lua
local retval = RegisterInteractionLockonPrompt(entity, text, radius, p3, flag, p5, p6, prompt, p8, p9)

-- always works, by hash
local retval = Citizen.InvokeNative(0x870708A6E147A9AD, entity, text, radius, p3, flag, p5, p6, prompt, p8, p9, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = RegisterInteractionLockonPrompt(entity, text, radius, p3, flag, p5, p6, prompt, p8, p9);

// by hash
const retval = Citizen.invokeNative('0x870708A6E147A9AD', entity, text, radius + 0.0000001, p3 + 0.0000001, flag, p5 + 0.0000001, p6 + 0.0000001, prompt, p8, p9, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x870708A6E147A9AD, entity, text, radius, p3, flag, p5, p6, prompt, p8, p9);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.