Installation
Install all dependencies
Download and install the following dependencies:
- MariaDB 10.4 or newer, or MySQL 8.0 or newer
- oxmysql
- up-to-date server artifacts
Remove your old appearance script
LB Appearance replaces esx_skin, skinchanger, illenium-appearance and qb-clothing. Remove them from your server, along with any other appearance script you use.
Download files
Download lb-appearance from the Cfx Portal and extract it to your resources folder.
Optionally, you can download lb-appearance attachments, which includes nails, rings and eyelashes.
Add to server.cfg
Add the following to your server.cfg:
add_unsafe_worker_permission lb-appearance
start [lb-appearance-attachments]
start lb-appearanceLB Appearance automatically scans your server for custom clothes, props, tattoos, and peds, which requires add_unsafe_worker_permission.
Remove the start [lb-appearance-attachments] line if you didn’t download/don’t want the attachments.
Set LB token
For the images to load, you need to set the LB_TOKEN convar. You can manage your tokens at https://lbscripts.com/account/api-tokens . Add the following to your server.cfg:
set LB_TOKEN "your_token"Configure the upload method
Outfit photos and nail designs are uploaded with the upload method set in Config.UploadMethod. By default, it’s detected from the API key you set.
LBPHONE25 for 25% off on Fivemanage - foreverThe recommended upload method is Fivemanage (Affiliate link - purchases made through this link will give us a commission at no extra cost to you)
If you want to use your own S3/R2 storage, you can use lb-presigned .
Set your API key in your server.cfg.
set FIVEMANAGE_MEDIA_API_KEY "api_key"If you use Qbox’s CDN, set QBOX_CDN_API_KEY instead. See Configuration for the other upload methods.
Add items (optional)
| Item | Used for |
|---|---|
outfit_bag | An outfit bag with an outfit inside |
empty_outfit_bag | An outfit bag without an outfit |
portable_wardrobe | Opens the player’s saved outfits anywhere |
Outfit bags need an inventory with item metadata, so they don’t work with the default ESX inventory. Neither outfit bag item may be used up, and outfit_bag mustn’t stack.
ox_inventory
Add the following to ox_inventory/data/items.lua:
["outfit_bag"] = {
label = "Outfit bag",
weight = 1000,
stack = false,
consume = 0
},
["empty_outfit_bag"] = {
label = "Empty outfit bag",
weight = 500,
consume = 0
},
["portable_wardrobe"] = {
label = "Portable wardrobe",
weight = 2000,
consume = 0
},qb-inventory
Add the following to qb-core/shared/items.lua:
outfit_bag = { name = 'outfit_bag', label = 'Outfit bag', weight = 1000, type = 'item', image = 'outfit_bag.png', unique = true, useable = true, shouldClose = true, description = '' },
empty_outfit_bag = { name = 'empty_outfit_bag', label = 'Empty outfit bag', weight = 500, type = 'item', image = 'empty_outfit_bag.png', unique = false, useable = true, shouldClose = true, description = '' },
portable_wardrobe = { name = 'portable_wardrobe', label = 'Portable wardrobe', weight = 2000, type = 'item', image = 'portable_wardrobe.png', unique = false, useable = true, shouldClose = true, description = '' },Configure
Configure the script to your liking.