_SET_PED_PERSONALITY
Personalities can also be found in common:/data/ai/interactionpersonalities
Hash
0xB8B6430EAD2D2437Runtime name
SetPedPersonalityNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_PED_PERSONALITY(Ped ped, Hash personality);Parameters
| Name | Type | Description |
|---|---|---|
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
SetPedPersonality(ped, personality)
-- always works, by hash
Citizen.InvokeNative(0xB8B6430EAD2D2437, ped, personality)JavaScript and C#
SetPedPersonality(ped, personality);
// by hash
Citizen.invokeNative('0xB8B6430EAD2D2437', ped, personality);Function.Call((Hash)0xB8B6430EAD2D2437, ped, personality);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.