Clothing
Appearance, clothing and outfits: clothing, barber, tattoo and plastic-surgeon shops with prices and cash/card checkout, a character creator, personal outfits, job lockers with auto uniforms, an admin panel and a green-screen picture tool for item thumbnails.
Framework: Qbox. Requires: oxmysql, ox_lib. Optional: ox_target, GR1M_Bridge (shop income into society accounts), GR1M_Tattoo.
#Install
ensure oxmysql
ensure ox_lib
ensure qbx_core
ensure GR1M_Bridge # optional, for shop income
ensure GR1M_Clothing
add_ace group.admin gr1m.clothing.admin allow
Tables are created on start (sql/install.sql is a reference copy).
#Switching from rcore_clothing or illenium-appearance
Config.Defaults.mode = 'auto': while rcore_clothing is running, GR1M Clothing only copies every player's look into its own table (shadow mode) and never dresses anyone. Stop rcore_clothing and it takes over, dressed exactly as before. /clothingadmin > Settings > Switch-over shows how many characters are copied.
It also answers the calls other scripts make to rcore_clothing, illenium-appearance and qb-clothing (change room, reload skin, load outfit, set ped skin), so multicharacter, job and housing scripts keep working. For multicharacter, set its clothing option to illenium-appearance.
Importers: gclothing_import (playerskins), gclothing_importshops (rcore shop spots), gclothing_importoutfits, gclothing_importtattoos.
#In game
| Who | How | What |
|---|---|---|
| Players | Shop or locker (ox_target, or marker + E) | Clothing / barber / tattoo / surgeon screen, Confirm & Buy, cash or card. Rotate, zoom, pan, freeze pose. Saved outfits. |
| Players | /outfits | Wear saved outfits anywhere (setting outfitsAnywhere) |
| Job members | Locker | Uniforms per grade; managers save and manage uniforms. Optional auto uniform on duty. |
| New characters | Multicharacter creator | Identity, appearance, clothing, tattoos |
| Admins | /clothingadmin | Items, shops (with money settings), job lockers, custom peds, settings, picture tool |
| Admins | /gclothing [clothing\|barber\|tattoo] | Free editor on yourself |
- Bought clothes are remembered: re-picking an owned item is free, and the wardrobe lists owned pieces.
- Each shop can pay its sales into a job's society account and has a price multiplier.
- Looks are stored by clothing pack + index inside the pack, so adding or removing a pack never changes anyone else's clothes.
#Item pictures
/clothingadmin > Items > pick gender and category > Shoot pictures (or Shoot all missing). You are moved in front of a green wall and each item is photographed on its own. Pictures are saved to thumbs/. Restart the resource afterwards. Tiles show the item number until a picture exists.
#Clothing packs
Drop grzyClothTool or Vestium style packs in their own resource as usual. /clothingadmin > Packs counts drawables per pack, slot and gender and warns about packs over the 128-per-pack sync limit.
#Config
config/defaults.lua holds defaults only; almost everything can be changed live in /clothingadmin (stored in the database).
Support: https://discord.gg/m38m33G6jK
GR1M