# PED::_GET_HORSE_TAMING_STATE

- **Hash:** `0x454AD4DA6C41B5BD`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetHorseTamingState`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/_GET_HORSE_TAMING_STATE

## Signature

```c
int _GET_HORSE_TAMING_STATE(Ped horse);
```

## Parameters

- `horse` (`Ped`)

## Returns

`int`

## Description

Returns an int based on enum eTamingState

enum eTamingState
{
	ATS_INVALID = 0,
	ATS_INACTIVE,
	ATS_TARGET_DETECTED,
	ATS_CALLED_OUT,
	ATS_MOUNTABLE,
	ATS_BEING_PATTED,
	ATS_BREAKING_ACTIVE,
	ATS_SPOOKED,
	ATS_RETREATING,
	ATS_FLEEING
};

## Usage

### Lua

```lua
local retval = GetHorseTamingState(horse)

-- always available, by hash
local retval = Citizen.InvokeNative(0x454AD4DA6C41B5BD, horse, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetHorseTamingState(horse);

// by hash
const retval = Citizen.invokeNative('0x454AD4DA6C41B5BD', horse, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x454AD4DA6C41B5BD, horse);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
