Flake Wearables
A wearable accessories system for FiveM. Players equip chains, watches, bags, bulletproof vests, decals, and t-shirts through an ox_lib context menu, with full illenium-appearance integration.
Overview
Flake Wearables adds equippable clothing accessories to your server. Players use an item to open a context menu, select from available presets, and the component is applied directly to their ped through illenium-appearance. Items are removed from inventory on equip and restored on unequip.
Features
- Six Categories โ Chains, Watches, Bags, Bulletproof Vests, Decals, T-Shirts.
- Context Menu UI โ Clean ox_lib menu for browsing and equipping.
- Gender Support โ Separate male and female drawable/texture presets.
- illenium-appearance โ Saves and restores wearables with player outfits.
- Item-Based โ Each wearable is a usable inventory item.
- Easy Presets โ Add new styles by editing simple Lua tables.
Requirements
| Dependency | Purpose | Required |
|---|---|---|
ox_lib | Callbacks, context menus, notifications | Yes |
ox_inventory | Item storage and usable item registration | Yes |
illenium-appearance | Ped component application and outfit saving | Yes |
| ESX / QBX / QB-Core | Framework for players and items | Yes |
Installation
Step 1 โ Drop the Resource
Place the flake_wearables folder into your server's resources directory and add to server.cfg:
Step 2 โ Add Items
Add each wearable item to your ox_inventory/data/items.lua (or QB inventory equivalent). Each item requires:
usable = trueclose = true(optional โ closes inventory on use)
['chain_gold'] = {
label = 'Gold Chain',
weight = 100,
stack = false,
close = true,
usable = true,
},Step 3 โ Configure
Edit shared.lua to map your inventory item names to wearable categories. See the Adding Items section below.
Done
File Structure
flake_wearables/ โโโ wearables/ โ โโโ chains.lua -- Chain presets (escrow-ignored) โ โโโ watches.lua -- Watch presets (escrow-ignored) โ โโโ bag.lua -- Bag presets (escrow-ignored) โ โโโ bproof.lua -- Bulletproof vest presets (escrow-ignored) โ โโโ decals.lua -- Decal presets (escrow-ignored) โ โโโ tshirt.lua -- T-shirt presets (escrow-ignored) โโโ client/ โ โโโ main.lua -- Menu logic, component application โโโ server/ โ โโโ main.lua -- Item registration, callbacks โโโ shared.lua -- Item-to-category mapping (escrow-ignored) โโโ fxmanifest.lua -- Resource manifest
Configuration
All preset files and shared.lua are escrow-ignored and fully editable.
Item Mapping
shared.lua maps inventory item names to wearable categories. When a player uses any item in the list, the script opens the context menu for that category.
Config.Chains = {
Items = {
'chain_gold',
'chain_silver',
'chain_diamond',
},
}Categories
| Category | Component | Preset File |
|---|---|---|
| Chains | Neck / Torso accessory | wearables/chains.lua |
| Watches | Left wrist | wearables/watches.lua |
| Bags | Backpack / duffle | wearables/bag.lua |
| Bulletproof Vests | Body armour | wearables/bproof.lua |
| Decals | Torso overlay | wearables/decals.lua |
| T-Shirts | Undershirt | wearables/tshirt.lua |
Adding Items
Adding a new wearable style takes three steps.
Step 1 โ Add Inventory Item
Register the item in your inventory config:
['chain_ruby'] = {
label = 'Ruby Chain',
weight = 100,
stack = false,
close = true,
usable = true,
},Step 2 โ Map to Category
Add the item name to the correct list in shared.lua:
Config.Chains.Items = {
'chain_gold',
'chain_silver',
'chain_ruby', -- new
}Step 3 โ Add Preset
Open the corresponding preset file (e.g. wearables/chains.lua) and add the drawable data:
Config.Chains.Presets.Chains.chain_ruby = {
male = {
drawable = 15,
texture = 0,
},
female = {
drawable = 15,
texture = 0,
},
}Finding Drawable IDs
Gender Support
male or female block if a style only exists for one gender. The script skips missing genders gracefully.Troubleshooting
| Issue | Fix |
|---|---|
| Item not usable | Ensure usable = true is set in your inventory item definition. |
| Menu not opening | Verify the item name matches exactly in shared.lua and your inventory config. |
| Component not showing | Double-check the drawable and texture IDs. Some drawables require a specific component slot. |
| Component disappears on relog | Ensure illenium-appearance is saving outfits correctly and the player saves after equipping. |
| Wrong component applied | Verify you are editing the correct preset file for the category. Chains and Decals use different component indices. |
| Female drawables not working | Female ped models often use different drawable IDs. Test on both genders or omit unsupported blocks. |
