# FiveM Dev Tool

The **FiveM Dev Tool** is a resource for your FiveM server, called `koja_devtool`. It gives you an in-game wardrobe, inspector, camera and item photo studio, so you can check your clothing on a running server. Installed from the app, it matches the tool's version, and on a server running on the same PC it pairs with the tool by itself.

:::hint{type="warning" title="For development servers"}
The Dev Tool is meant for development servers. The server console warns when it is enabled while more than two players are online.
:::

## Installing it

:::steps
### Open the Dev Tool card
Go to **Settings** ▸ **Plugins & Live Link** and find the **FiveM Dev Tool** card.

### Choose your server
Click **Choose server folder…** and pick your server's resources folder, or the folder with `server.cfg` in it. The card shows whether the Dev Tool is already on that server, and whether a newer version is available.

### Install
Leave **Add the missing lines to server.cfg** on to let the app add them for you. The old file is kept as `server.cfg.bak-koja-devtool`. Then click **Install** (or **Update** when an older version is there).

### Start it
Restart the server, or type `refresh` and then `ensure koja_devtool` in its console.
:::

If there is no `server.cfg` next to the folder, the card shows the lines to add to the config your server starts with, with a **Copy lines** button:

```cfg title="server.cfg"
set koja_devtool_enabled true
add_ace group.admin koja.devtool allow
add_ace group.admin koja.devtool.utilities allow
ensure koja_devtool
```

**Forget** clears the chosen server folder.

## Opening it in game

Press **F7** in game, or type `/kdev`. Only players in `group.admin` can open it. Players can rebind the key in **Settings** ▸ **Key Bindings** ▸ **FiveM**.

The panel has these sections down its side:

- **Wardrobe**
- **Body and face**
- **Outfits and favourites**
- **Camera, light and motion**
- **Inspect any ped**
- **Health and pack scan**
- **Item photos**
- **Tattoo photos**
- **Dev tools**
- **Cloth Tool**

Press **Esc** to close it.

## Tattoo photos

New in 2.0.11. **Tattoo photos** saves a picture of every tattoo the server streams, for an appearance menu or a store page. Tick the tattoos you want (use **Find tattoos** to search), choose the settings, and take the pictures.

| Setting | Choices |
| --- | --- |
| **Picture** | **Flat artwork** (the default): the tattoo's own artwork, read from its `.ytd` on the server and saved on a transparent square. The game is not involved, so you get exactly the texture the server streams. **On body (in game)**: each tattoo goes on a mannequin of its gender in underwear, where you stand, and the camera turns to the part of the body it is on. The panel and your character are hidden while the pictures are taken. |
| **Size** | 256, 512 or 1024 px. |
| **Crop** | On body only: how tightly the picture is cropped around the tattoo. |

Each picture is saved as `tattoos/<collection>/<preset>.png` in the photo folder. The photo folder is `photos` inside the resource unless your server's `config.lua` points it elsewhere.

:::hint{type="info" title="On body needs screenshot-basic"}
**On body (in game)** needs the `screenshot-basic` resource running on the server. **Flat artwork** does not.
:::

The list only shows tattoos from started resources whose `<collection>_overlays.xml` is listed as a `PED_OVERLAY_FILE`. If the server sends no tattoo list, update `koja_devtool` on the server.

To export tattoo pictures straight from your project instead, use **Export images** in the [Tattoo Creator](/cloth-tool/about-the-tool/tattoo-creator).

## Related pages

- [Tattoo Creator](/cloth-tool/about-the-tool/tattoo-creator)
- [Building](/cloth-tool/about-the-tool/building)
- [Server Check](/cloth-tool/about-the-tool/server-check)
- [Live Link](/cloth-tool/about-the-tool/live-link)
