Configuration
Every config.lua option of Eleven Outfits: language, styles, price, payment account, staff permissions, camera, notifications, HUD hook and studio tools.
Where to configure it
Everything is in outfit-catalog/config.lua, with comments, and the strings are in outfit-catalog/locales/*.json. These are the only editable files in the resource. Restart the resource (or the server) to apply changes.
Warning
config.lua is sent to every player. Do not put secrets in it: see Photo storage.
General keys
| Key | Default | What it does |
|---|---|---|
Config.Locale | 'en' | UI and notification language. Loads locales/<code>.json. Set 'es' for Spanish. |
Config.Styles | { 'casual', 'urban', 'elegant', 'sport', 'party', 'summer', 'winter' } | Styles used to filter. The id is stored in the database; the display name comes from the language file (style.<id>). |
Config.Account | 'bank' | Account the outfit is paid from: 'bank' or 'cash'. Any other value means nobody can pay, and the console warns you. |
Config.Price | nil | nil = the illenium-appearance shop price (Config.ClothingCost). A number = fixed price per outfit. 0 = free. |
Config.Customize | false | Lets players tweak a few pieces before buying. See Trying on and buying. |
Config.ShopRadius | 15.0 | Maximum distance (m) to an illenium-appearance clothing store to open the catalog and to buy. |
Config.Staff | aces = { 'group.admin' }, groups = { 'admin', 'god' } | Who can create and remove outfits and retake photos. Either condition is enough. |
Config.Notify | ox_lib | Function behind every notification (client side). |
Config.CloseCommand | 'outfitcatalog_close' | Emergency command (F8) that closes the UI and gives the mouse back. |
Config.HideHud | empty | Hook to hide your HUD while the photo is taken. |
Tip
illenium-appearance charges the shop in cash, while the catalog charges the bank by default. Set Config.Account = 'cash' if you want them to match.
Fitting room camera
Config.Camera controls the full-body camera while players try outfits on.
| Key | Default | What it does |
|---|---|---|
fov | 38.0 | Field of view. |
height | -0.05 | Height of the point it looks at, relative to the character's centre (m). |
distance | 2.9 | Distance to the character (m). |
side | 0.16 | Shifts the framing so the character is not hidden behind the panel. |
zoomMin | 0.6 | Closest zoom (multiplies the distance). |
zoomMax | 1.5 | Furthest zoom. |
Catalog photo
Config.Photo controls the photo taken when an outfit is created or with Retake photo: the character facing the camera, centred and cropped.
| Key | Default | What it does |
|---|---|---|
fov | 34.0 | Field of view. |
height | -0.02 | Height of the point it looks at (m). |
distance | 3.3 | Distance to the character (m). |
outWidth, outHeight | 600, 800 | Final photo size (WebP). |
quality | 0.9 | Quality from 0 to 1. |
settleMs | 900 | Time for the camera to arrive and textures to load before the shot. |
Photo storage
Config.Photos decides where photos go (local, http or discord) and the maximum upload time (timeoutMs, 20000). It is all in Photo storage.
Studio
Config.Studio sets up the studio commands: on/off, permission, names, photo spot, framings, categories and base clothes. It is all in Photo studio.
Hooks
Notifications with your own script
By default notifications use ox_lib's lib.notify. Replace the function body to use yours:
-- kind: 'inform' | 'success' | 'warning' | 'error'; duration in ms (may be nil)
Config.Notify = function(title, text, kind, duration)
lib.notify({ title = title, description = text, type = kind or 'inform', duration = duration })
end
Hiding your HUD during the photo
-- Examples:
Config.HideHud = function(hide) exports['my-hud']:setHidden(hide) end
Config.HideHud = function(hide) DisplayRadar(not hide) end
hide is true when the photo starts and false when it ends. Replace my-hud and setHidden with whatever your HUD uses.
Staff permissions
Config.Staff = {
aces = { 'group.admin' }, -- ACE permissions (server.cfg add_ace / add_principal)
groups = { 'admin', 'god' }, -- Qbox/QBCore permission groups
}
One of the ACEs or one of the groups is enough. The studio commands use a different permission, Config.Studio.permission. See Commands and permissions.
Adding a style
- Add its id to
Config.Styles, for example'work'. - Add a
"style.work"line to every file inlocales/:"style.work": "Work",
Warning
Do not rename the id of a style outfits already use: the id is what the database stores. Change only its display name in the language file.
Languages and strings
English (en.json) and Spanish (es.json) are included. Every UI, notification, style and studio string lives there.
- Change a string: edit the value in the language file you use.
- Add a language: copy
locales/en.jsontolocales/<code>.json(for examplefr.json), translate the values without touching the keys and setConfig.Locale = 'fr'.
The Outfit catalog entry in the shop menu is not in these files: it lives in the patch, inside illenium-appearance. See illenium-appearance patch.