Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

Install the Multiplayer Fashion & Print Job, or update an older version to 3.0.


Prerequisites

Requirement
Description

tw-lib

Free Tworst library, version 1.0.0 or newer

oxmysql

Database

PolyZone

Zones of the factory

FiveM Server

A recent server build (OneSync on, as txAdmin sets by default)


Step 1: Download

From Cfx.re Portal

  1. Go to portal.cfx.re → Granted Assets

  2. Download tw-fashion and tw-lib

tw-lib is free and comes with every Tworst job. You can also download it from GitHub Releases. Download the tw-lib-x.x.x.zip file there, not "Code → Download ZIP" (that folder is named tw-lib-main and the jobs will not find it).


Step 2: Extract Files

Put these three folders into your resources directory:


Step 3: Database


Step 4: Add Items

QBCore / QBox

Add to qb-core/shared/items.lua (also in CLICK-ME-INVENTORY-ITEM/itemlist-forQB.txt):

ox_inventory

Add to ox_inventory/data/items.lua (also in CLICK-ME-INVENTORY-ITEM/itemlist-forOXINV.txt):

qs-inventory

Use CLICK-ME-INVENTORY-ITEM/itemlist-forQS.txt.

Other inventories

Add the same six items the way your inventory expects.

Item Images

Copy the images from tw-fashion/CLICK-ME-INVENTORY-ITEM/img/ into your inventory's image folder (for example qb-inventory/html/images/ or ox_inventory/web/images/).


Step 5: server.cfg


Step 6: Start & Check

Start the server and look at the console:

  • The second line shows what tw-lib detected. If something is wrong there, see Troubleshooting.

  • The last line appears a few seconds later. If a new version exists it says update available instead.

Then in game: go to the fashion NPC at the factory, open a lobby and start.


Admin Menu Permission

/twlib opens the Tworst admin menu for players with the tw-lib.admin ace. QBCore / QBox admins (god, admin) and ESX admins (admin, superadmin) are allowed automatically. For anyone else, add to server.cfg:

You can also list players by identifier in tw-lib/config.lua, and set the menu language there. See tw-lib → Admin Menu for what each page of the menu does.


Updating from 1.x

  1. Stop the server (or the resource).

  2. Download the new tw-fashion and tw-lib.

  3. Copy the new tw-fashion over your old folder. Do not delete the old folder first: tw-lib reads your old config/config.lua and locales/ once and keeps every value you had changed (money, XP, language, texts, coordinates).

  4. Keep your tw_fashion_stream folder as it is.

  5. Add ensure tw-lib before ensure tw-fashion in server.cfg.

  6. Start the server. The console lists what was imported. Your players' levels and history in tw_fashion are kept.

From 3.0 on, updates are simple: copy the new folder over the old one. Your settings are stored in the database (tw_lib_settings), so nothing you changed is lost.


Troubleshooting

Could not find dependency tw-lib for resource tw-fashion

tw-lib is not installed or not started. Install it (Step 1) and ensure tw-lib before the job.

Could not find dependency PolyZone for resource tw-fashion

PolyZone is not installed or not started. Install it and ensure PolyZone before the job.

tw-fashion needs tw-lib X or newer

Your tw-lib is older than the job needs. Download the latest from GitHub or the Cfx.re portal and replace the tw-lib folder.

Wrong framework / inventory / keys / fuel / clothing detected

Look at the [tw-lib] 1.0.0 | framework=... line. If a script you use is not there, check that it is started, and that its folder name is the original one. To force a choice: twlib set tw-lib bridge.inventory ox_inventory in the server console (same for framework, keys, fuel, clothing), then restart tw-lib.

Empty factory / machines cannot be used

tw_fashion_stream is missing or not started.

Items are not given or cannot be bought

The six items are missing from your inventory. See Step 4. Item names are case-sensitive.


Need Help?

Open a ticket on our Discord with the [tw-lib] ... status line from your console and any red error lines.

Last updated