START_TASK_ITEM_INTERACTION
Hash
0xAE72E7DF013AAA61Runtime name
StartTaskItemInteractionNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
void START_TASK_ITEM_INTERACTION(Ped ped, Hash itemHash, Hash interactionAnimHash, int p3, int flag, float p5);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
itemHash | Hash | — |
interactionAnimHash | Hash | — |
p3 | int | — |
flag | int | — |
p5 | float | — |
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
StartTaskItemInteraction(ped, itemHash, interactionAnimHash, p3, flag, p5)
-- always works, by hash
Citizen.InvokeNative(0xAE72E7DF013AAA61, ped, itemHash, interactionAnimHash, p3, flag, p5)JavaScript and C#
StartTaskItemInteraction(ped, itemHash, interactionAnimHash, p3, flag, p5);
// by hash
Citizen.invokeNative('0xAE72E7DF013AAA61', ped, itemHash, interactionAnimHash, p3, flag, p5 + 0.0000001);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.InvokeNativeneeds the number — passjoaat("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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.