# PED::_SET_PED_PERSONALITY

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

## Signature

```c
void _SET_PED_PERSONALITY(Ped ped, Hash personality);
```

## Parameters

- `ped` (`Ped`)
- `personality` (`Hash`)

## Returns

`void`

## Description

Hashes: STANDARD_PED_AGRO_GUARD, BOUNTY_HUNTER, PLAYER_HORSE, LAW_POLICE, GUARD_DOG, ATTACK_DOG
Personalities can also be found in common:/data/ai/interactionpersonalities

## Usage

### Lua

```lua
SetPedPersonality(ped, personality)

-- always available, by hash
Citizen.InvokeNative(0xB8B6430EAD2D2437, ped, personality)
```

### JavaScript

```js
SetPedPersonality(ped, personality);

// by hash
Citizen.invokeNative('0xB8B6430EAD2D2437', ped, personality);
```

### C#

```csharp
Function.Call((Hash)0xB8B6430EAD2D2437, ped, personality);
```

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