# PED::_SET_PELT_FOR_HORSE_BY_INVENTORY_ITEM

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

## Signature

```c
void _SET_PELT_FOR_HORSE_BY_INVENTORY_ITEM(Ped horse, Hash inventoryItem, Hash albedoHash, Hash normalHash, BOOL p4);
```

## Parameters

- `horse` (`Ped`)
- `inventoryItem` (`Hash`)
- `albedoHash` (`Hash`)
- `normalHash` (`Hash`)
- `p4` (`BOOL`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Adds a pelt to a horse from an inventoryItem hash and albedoHash, optionally normalHash textures.

*Source: VORPCORE RDR3natives*

Set the pelt of the animal to the back of the horse
EXAMPLE:
local mount = GetMountOwnedByPlayer(PlayerId())
Citizen.InvokeNative(0xC412AA1C73111FE0,mount,GetHashKey('PROVISION_DEER_HIDE_POOR'),GetHashKey('a_c_deer_01_uppr_000_c0_001_ab'),0,0)

*Source: femga rdr3_discoveries*

```
0xC412AA1C73111FE0(by Ultimation)
Adds a pelt to a horse from an itemHash and the albedo, (optional) normal textures.

local mount = GetMountOwnedByPlayer(PlayerId())
local itemhash = GetHashKey('PROVISION_DEER_HIDE_POOR')
local albedo = GetHashKey('a_c_deer_01_uppr_000_c0_001_ab')
local normal = 0
local param5 = 0 -- always appears to be 0

Citizen.InvokeNative(0xC412AA1C73111FE0,mount,itemHash,albedo,normal,0,param5)
```

## Usage

### Lua

```lua
SetPeltForHorseByInventoryItem(horse, inventoryItem, albedoHash, normalHash, p4)

-- always available, by hash
Citizen.InvokeNative(0xC412AA1C73111FE0, horse, inventoryItem, albedoHash, normalHash, p4)
```

### JavaScript

```js
SetPeltForHorseByInventoryItem(horse, inventoryItem, albedoHash, normalHash, p4);

// by hash
Citizen.invokeNative('0xC412AA1C73111FE0', horse, inventoryItem, albedoHash, normalHash, p4);
```

### C#

```csharp
Function.Call((Hash)0xC412AA1C73111FE0, horse, inventoryItem, albedoHash, normalHash, p4);
```

- 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` ``.
- 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, VORPCORE RDR3natives, femga rdr3_discoveries.*
