TASK_ANIMAL_INTERACTION
Tasks ped to perform the animal interaction interactionType with targetPed, such as feeding or brushing a horse.
Signature
void TASK_ANIMAL_INTERACTION(Ped ped, Ped targetPed, Hash interactionType, Hash interactionModel, BOOL skipIdleAnimationClip); // 0xCD181A959CFDD7F4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | targetPed | Ped |
| 3 | interactionType | Hash |
| 4 | interactionModel | Hash |
| 5 | skipIdleAnimationClip | BOOL |
Facts
| Name | TASK_ANIMAL_INTERACTION |
|---|---|
| Hash | 0xCD181A959CFDD7F4 |
| 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(0xCD181A959CFDD7F4, -- TASK_ANIMAL_INTERACTION
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Ped targetPed
GetHashKey("name"), -- Hash interactionType
GetHashKey("a_c_horse_arabian_white"), -- Hash interactionModel
false -- BOOL skipIdleAnimationClip
)Citizen.invokeNative("0xCD181A959CFDD7F4", // TASK_ANIMAL_INTERACTION
PlayerPedId(), // Ped ped
PlayerPedId(), // Ped targetPed
GetHashKey("name"), // Hash interactionType
GetHashKey("a_c_horse_arabian_white"), // Hash interactionModel
false // BOOL skipIdleAnimationClip
);Function.Call((Hash)0xCD181A959CFDD7F4, // TASK_ANIMAL_INTERACTION
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Ped targetPed
(uint)API.GetHashKey("name"), // Hash interactionType
(uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash interactionModel
false // BOOL skipIdleAnimationClip
);Related TASK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.