Pick the target ped
Use PlayerPedId() for the local player, or an existing ped handle for an NPC. The generated code declares the variable for you.
Every clothing and prop slot on a FiveM ped in one table. Enter a drawable and
texture for the slots you want, and the page writes the matching
SetPedComponentVariation and SetPedPropIndex calls.
Components are the numbered clothing layers on a ped. Fill in a drawable and texture for any slot and the outfit code below updates immediately. Leave a slot blank to skip it.
The generated code starts with local ped = PlayerPedId(). Change the variable if your script already has a ped handle.
| ID | Slot | What it controls | Drawable | Texture |
|---|---|---|---|---|
| 0 | Face / Head | Head shape on story peds; usually 0 on freemode peds | ||
| 1 | Mask | Masks and balaclavas; beards on freemode peds | ||
| 2 | Hair | Hairstyle; the texture picks the hair colour | ||
| 3 | Torso / Arms | Upper body and arms; base for gloves | ||
| 4 | Legs | Trousers and pants | ||
| 5 | Bags / Parachute | Backpacks and parachute bags | ||
| 6 | Shoes / Feet | Footwear | ||
| 7 | Accessories / Neck | Scarves, chains, ties and lanyards | ||
| 8 | Undershirt | Shirt worn under a jacket (component 11) | ||
| 9 | Body Armor | Kevlar and vests | ||
| 10 | Decals | Badges, logos and shirt prints | ||
| 11 | Tops / Jacket | Outer torso: jackets, coats and tops |
Props are the accessories that sit on top of the ped: hats, glasses, earrings and jewellery. A drawable of -1 clears that prop, which is the same as calling ClearPedProp.
| ID | Prop | What it controls | Drawable | Texture |
|---|---|---|---|---|
| 0 | Hats / Helmets | Hats and helmets; use -1 to remove one | ||
| 1 | Glasses | Accessory prop; use -1 to remove it | ||
| 2 | Ears / Earrings | Accessory prop; use -1 to remove it | ||
| 6 | Watches | Accessory prop; use -1 to remove it | ||
| 7 | Bracelets | Accessory prop; use -1 to remove it |
The calls are ordered from component 0 to 11, then props, so you can paste them into a clothing menu, a uniform script or a character creator.
-- Enter a drawable above to generate SetPedComponentVariation / SetPedPropIndex calls
Use PlayerPedId() for the local player, or an existing ped handle for an NPC. The generated code declares the variable for you.
SetPedComponentVariation(ped, componentId, drawableId, textureId, paletteId) changes one clothing layer. Drawables are the item variant, textures are the colour swatches inside it.
SetPedPropIndex(ped, propId, drawableId, textureId, true) puts on a hat, glasses or jewellery. Use ClearPedProp(ped, propId) or a drawable of -1 to remove it.
Components reset when a ped model changes. Run the outfit code inside CreateThread after RequestModel and SetModelAsNoLongerNeeded, or reapply it when the player spawns.
0 Face, 1 Mask, 2 Hair, 3 Torso and arms, 4 Legs, 5 Bags and parachute, 6 Shoes, 7 Accessories and neck, 8 Undershirt, 9 Body armor, 10 Decals, 11 Tops and jackets. Props use a separate set: 0 hats, 1 glasses, 2 ears, 6 watches, 7 bracelets.
Call SetPedComponentVariation(ped, componentId, drawableId, textureId, paletteId) for each clothing slot, then SetPedPropIndex for hats, glasses and jewellery. This page writes those calls from the drawable and texture values you enter.
Use ClearPedProp(ped, propId), or set the prop drawable to -1. Entering -1 for a prop drawable here generates the ClearPedProp call.
Changing a ped model replaces its drawables and props. Reapply the outfit after the model has loaded, for example inside a thread that waits for the model request to finish.
Yes, the component and prop IDs are the same for every ped. The available drawables and textures depend on what the custom model ships with, so test the highest drawable ID on your server.
Hashes show up everywhere in server work. These tools use the same values.
NVMe storage, one-click artifact updates and 10Tbit/s DDoS protection on every FiveM plan.