Koja Scripts

FiveM Dev Tool

Install the koja_devtool resource on your FiveM development server from the app, then open its in-game wardrobe, inspector, camera and photo tools with F7.

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.

Installing it

  1. Open the Dev Tool card

    Go to Settings ▸ Plugins & Live Link and find the FiveM Dev Tool card.
  2. 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.
  3. 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).
  4. 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:

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.

SettingChoices
PictureFlat 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.
Size256, 512 or 1024 px.
CropOn 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.

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.