START_TASK_ITEM_INTERACTION
Starts an item interaction on ped with itemHash, using the interaction animation interactionAnimHash.
Signature
void START_TASK_ITEM_INTERACTION(Ped ped, Hash itemHash, Hash interactionAnimHash, int p3, int flag, float p5); // 0xAE72E7DF013AAA61 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | itemHash | Hash |
| 3 | interactionAnimHash | Hash |
| 4 | p3 | int |
| 5 | flag | int |
| 6 | p5 | float |
Facts
| Name | START_TASK_ITEM_INTERACTION |
|---|---|
| Hash | 0xAE72E7DF013AAA61 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xAE72E7DF013AAA61, -- START_TASK_ITEM_INTERACTION
PlayerPedId(), -- Ped ped
GetHashKey("name"), -- Hash itemHash
GetHashKey("name"), -- Hash interactionAnimHash
0, -- int p3
0, -- int flag
0.0 -- float p5
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xAE72E7DF013AAA61", // START_TASK_ITEM_INTERACTION
PlayerPedId(), // Ped ped
GetHashKey("name"), // Hash itemHash
GetHashKey("name"), // Hash interactionAnimHash
0, // int p3
0, // int flag
0.0 // float p5
);Function.Call((Hash)0xAE72E7DF013AAA61, // START_TASK_ITEM_INTERACTION
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("name"), // Hash itemHash
(uint)API.GetHashKey("name"), // Hash interactionAnimHash
0, // int p3
0, // int flag
0.0f // float p5
);Related TASK natives
- _TASK_ITEM_INTERACTION_2
- _TASK_ITEM_INTERACTION_3
- CAN_START_ITEM_INTERACTION
- GET_ITEM_INTERACTION_ITEM_ID
- IS_PED_RUNNING_TASK_ITEM_INTERACTION
- _GET_ITEM_INTERACTION_ENTITY_FROM_PED
- _SET_ITEM_INTERACTION_STATE
- _TASK_START_SCENARIO_IN_PLACE_2
- CLEAR_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
- GET_ITEM_INTERACTION_PROMPT_PROGRESS
- GET_ITEM_INTERACTION_STATE
- IS_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.