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
Hash
0x870708A6E147A9ADRuntime name
RegisterInteractionLockonPromptNamespaceMISC
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
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
text | const char* | — |
radius | float | — |
p3 | float | — |
flag | int | — |
p5 | float | — |
p6 | float | — |
prompt | Prompt | — |
p8 | BOOL | — |
p9 | int | — |
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
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#
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());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.