Koja Scripts
Cloth Tool

Ped Library

Keep game peds, FiveM ped resources and Ped Creator peds in a project, preview garments on them, dress them in saved outfits, and build clothing for them.

Ped Library

New in 2.0.8. The Ped Library is the list of peds a project works with: peds from your GTA V install, add-on peds from FiveM resources, and peds you made in the Ped Creator. From the library you can preview a garment on any of them, save a ped as a body preset, dress it in an outfit, and build clothing made for that ped.

Opening the library

Click the Ped library button (the people icon) in the top bar. The library window opens with every ped in the project as a card.

The search box (Search by name, kind or gender) filters the cards. A line at the top names the item selected in the main window: the card actions that use an item apply to that one.

Adding peds

Click Add ped and choose a source:

SourceWhat it adds
From the game…Peds from your GTA V install. Opens a picker with search and filters.
From a resource folder…The ped or peds in a FiveM ped resource folder.
From a resource .zip…The same, from a .zip.
From a 3D model (Ped Creator)…Opens the Ped Creator to make a new ped from a model.
Saved in the Ped CreatorPeds already saved in this project's Ped Creator that are not in the library yet.

Peds from the game

Add peds from the game lists the peds in your install. Search by name (for example skater, cop or f_y_) and filter by group: All, Ambient, Story, Gang, Service, MP and Animals. Each row shows the gender and whether its skeleton is the Freemode skeleton, Compatible or Not compatible. Tick the peds you want and click Add ped (or Add N peds).

Freemode itself is not in the list: it is built in as Freemode male and Freemode female.

The ped cards

Each card shows a picture of the ped, its gender, and a chip for where it came from: Ped Creator, Game, Resource or Folder (this PC). Pictures are drawn in the background and kept on your PC.

Skeleton fit

A badge says whether your freemode garments fit the ped's skeleton:

BadgeMeaning
Freemode skeletonSame bones as freemode. Garments fit as they are.
Compatible — retargetedGarments are moved onto the ped's bones. Use Fit to ped in the Model Studio for the closest result.
Not compatibleFreemode garments cannot go on this ped, for example an animal. The badge names the missing bones.

Why a ped cannot be used on this PC

A warning chip on the card explains what is wrong:

ChipMeaning
EscrowedThe ped's files are encrypted by FiveM escrow. They are kept, but cannot be a preview body.
MissingThe saved Ped Creator ped behind this entry was renamed or deleted.
Not on this PCThe ped points at a folder on another computer. Import it properly to share it.
Game files not extractedA game ped whose game files cannot be read on this PC.

In the last two cases the preview shows freemode instead.

Card actions

ActionWhat it does
Preview on this pedShows the selected item on this ped in the 3D preview.
Dress…Opens the outfit dresser on this ped.
Save as a body presetSaves the ped as a body preset. Pick it under Appearance › Ped.
Build the selected item for this pedSets the selected item's Target ped to this ped (asks first).
Open in Ped CreatorOpens the ped in the Ped Creator.
Rename…Renames a resource ped. The name is the ped's model name in game: lower case, letters, digits and _, up to 32 characters. A game ped's own name is refused.
Remove from the library…Takes the ped out of the project's library.

Previewing on a library ped

Choose the ped under Appearance → Ped in the 3D preview, use Preview on this ped on its card, or set the item's Preview body field. See Appearance Menu.

  • Most humanoid peds wear freemode garments fitted to their body.
  • Animations play on the ped's own skeleton. See Animations.
  • A ped missing core bones, such as an animal, is shown with its bare body, and the preview names the bones it is missing.

Outfits

An outfit is a ped dressed slot by slot with garments, texture variants and props, saved in the project for the whole team.

  1. Open the dresser

    Use Dress… on a ped card, or Appearance → Outfit → Dress the ped… in the 3D preview.
  2. Pick the ped

    Choose the ped at the top of the Outfit panel. Freemode is listed as Built in.
  3. Dress each slot

    Under Clothing and Props, pick an item for each slot, and a Variant for its texture. Search by name if the list is long. Items built for another ped are left out and counted.
  4. Check it on the stage

    With Wear it in the viewport on, the 3D preview follows every change. Under Body you can show or hide the ped's own drawables, and set a Skin tone.
  5. Save it

    Click Save and name the outfit. Save as… keeps the old one and saves a copy.

From an outfit you can:

  • Open the Photo Studio on it (Photo).
  • Send it to the Scene Creator as a new actor (Scene). The Scene Creator uses the outfit as last saved.

Deleting an item from the project removes it from every outfit. Deleting an outfit removes only the combination; the garments stay.

Clothing for library peds

Target ped

Every item has a Target ped field in its properties: the ped the garment is built for. The default is freemode for the item's gender. Choosing a library ped tells you what follows: the gender it is built as, whether the garment is retargeted or refused, and that it ships inside a streamed resource for that ped.

How it is built

Items with a library ped as target are listed in the build window under Clothes for peds, one row per ped with its garment count, its resource name and anything that blocks it.

  • Clothes for each ped go into a resource of their own, together with the ped.
  • The ped keeps its own drawables. Your garments are numbered after them, and the numbers are written to INSTALL.txt and clothes_info.json.
  • Freemode garments are moved onto a ped with a different skeleton during the build.
  • A copy made with Fit to ped ships as fitted. A copy fitted for a different ped is left out, with the reason.
  • A ped based on a game ped keeps its walk style, voice and behaviour.

Checks

The build checks flag:

  • an item built for a ped that is no longer in the library;
  • a ped whose skeleton cannot wear clothes;
  • a garment whose gender does not match its target ped;
  • a garment that has not been fitted to the ped;
  • a ped named like one of the game's own peds. A game ped's own name is refused, so a build cannot replace the original for every player.

See Validation.

Limits