# TASK::TASK_ANIMAL_INTERACTION

- **Hash:** `0xCD181A959CFDD7F4`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `TaskAnimalInteraction`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/TASK_ANIMAL_INTERACTION

## Signature

```c
void TASK_ANIMAL_INTERACTION(Ped ped, Ped targetPed, Hash interactionType, Hash interactionModel, BOOL skipIdleAnimationClip);
```

## Parameters

- `ped` (`Ped`)
- `targetPed` (`Ped`)
- `interactionType` (`Hash`)
- `interactionModel` (`Hash`)
- `skipIdleAnimationClip` (`BOOL`)

## Returns

`void`

## Description

https://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_ANIMAL_INTERACTION

## Usage

### Lua

```lua
TaskAnimalInteraction(ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip)

-- always available, by hash
Citizen.InvokeNative(0xCD181A959CFDD7F4, ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip)
```

### JavaScript

```js
TaskAnimalInteraction(ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip);

// by hash
Citizen.invokeNative('0xCD181A959CFDD7F4', ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip);
```

### C#

```csharp
Function.Call((Hash)0xCD181A959CFDD7F4, ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip);
```

- 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` ``.

*Sources: alloc8or RDR3 NativeDB.*
