RedM Natives

START_TASK_ITEM_INTERACTION

Hash0xAE72E7DF013AAA61
Runtime nameStartTaskItemInteraction
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void START_TASK_ITEM_INTERACTION(Ped ped, Hash itemHash, Hash interactionAnimHash, int p3, int flag, float p5);

Parameters

NameTypeDescription
pedPed—
itemHashHash—
interactionAnimHashHash—
p3int—
flagint—
p5float—

Returns void

Description

Params: p3 = 0, 1; p5 = 0.0f, -1.0f
https://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_ITEM_INTERACTION

Usage

Lua
StartTaskItemInteraction(ped, itemHash, interactionAnimHash, p3, flag, p5)

-- always works, by hash
Citizen.InvokeNative(0xAE72E7DF013AAA61, ped, itemHash, interactionAnimHash, p3, flag, p5)
JavaScript and C#
JavaScript
StartTaskItemInteraction(ped, itemHash, interactionAnimHash, p3, flag, p5);

// by hash
Citizen.invokeNative('0xAE72E7DF013AAA61', ped, itemHash, interactionAnimHash, p3, flag, p5 + 0.0000001);
C#
Function.Call((Hash)0xAE72E7DF013AAA61, ped, itemHash, interactionAnimHash, p3, flag, p5);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • 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.

Sources

alloc8or RDR3 NativeDB

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