Docs
URL scheme
https://cdn.ped.clothing/v1/{gender}/{category}/{drawable}/{texture}.webpExample: https://cdn.ped.clothing/v1/male/tops/15/0.webp
genderismaleorfemale.drawableandtextureare zero-based integers matching the game natives.v1is a version prefix — a full re-render goes underv2without breaking existing links.
Categories
| Slug | Kind | Native ID |
|---|---|---|
masks | component | 1 |
hair | component | 2 |
torsos | component | 3 |
legs | component | 4 |
bags | component | 5 |
shoes | component | 6 |
accessories | component | 7 |
undershirts | component | 8 |
armor | component | 9 |
decals | component | 10 |
tops | component | 11 |
hats | prop | 0 |
glasses | prop | 1 |
ears | prop | 2 |
watches | prop | 6 |
bracelets | prop | 7 |
Using it in a clothing menu
Lua, applying a component variation:
SetPedComponentVariation(ped, 11, 245, 0, 0) -- tops, drawable 245, texture 0
Lua, applying a prop:
SetPedPropIndex(ped, 0, 12, 0, true) -- hats, drawable 12, texture 0
NUI / JS, fetching a preview image for a menu tile:
const url = `https://cdn.ped.clothing/v1/male/tops/${drawable}/${texture}.webp`;