# FLOCK::_SET_ANIMAL_RARITY

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

## Signature

```c
void _SET_ANIMAL_RARITY(Ped ped, int rarityLevel);
```

## Parameters

- `ped` (`Ped`)
- `rarityLevel` (`int`)

## Returns

`void`

## Description

rarityLevel: see _GET_ANIMAL_RARITY

## Usage

### Lua

```lua
SetAnimalRarity(ped, rarityLevel)

-- always available, by hash
Citizen.InvokeNative(0x8B6F0F59B1B99801, ped, rarityLevel)
```

### JavaScript

```js
SetAnimalRarity(ped, rarityLevel);

// by hash
Citizen.invokeNative('0x8B6F0F59B1B99801', ped, rarityLevel);
```

### C#

```csharp
Function.Call((Hash)0x8B6F0F59B1B99801, ped, rarityLevel);
```

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

## See also

- [FLOCK::_GET_ANIMAL_RARITY](https://natives.borderlinerp.com/natives/FLOCK/_GET_ANIMAL_RARITY.md) — ARL_COMMON, ARL_RARE, ARL_LEGENDARY, ARL_NUMRARITYLEVELS

*Sources: alloc8or RDR3 NativeDB.*
