Installation
Requirements
Section titled “Requirements”| Framework | QBCore, Qbox or ESX Legacy |
| Inventory | ox_inventory, qb-inventory or qs-inventory (beta). ESX needs ox_inventory or qs-inventory: its default inventory has no trunks |
| Interaction | sl_interact, ox_target or qb-target |
| Server | OneSync enabled, recent artifacts |
No other dependencies: no ox_lib, no PolyZone.
What is in the package
Section titled “What is in the package”These files are open so you can adapt them:
| File | What you change there |
|---|---|
config.lua |
Every option |
locales/ |
Every text the players see; copy en.lua to add a language |
data/items.lua, data/fallback.lua |
Which prop shows each item |
data/zones/ |
Generated trunk zones and your own (custom/, written by the editor) |
data/loot.lua |
NPC loot tables (Pro) |
server/bridge/, client/bridge/, shared/framework.lua, client/target.lua, client/notify.lua |
Inventory, framework, target and notification bridges |
The rest is protected by the Cfx Asset Escrow.
Installation
Section titled “Installation”1. Download the resource
Section titled “1. Download the resource”Get SL-Trunk from the store, then open portal.cfx.re, go to Assets > Granted Assets and download it.
2. Add it after your framework, inventory and target
Section titled “2. Add it after your framework, inventory and target”Place the sl_trunk folder in your resources and ensure it after them:
ensure ox_inventory # or qb-inventory / qs-inventoryensure ox_target # or qb-target / sl_interactensure sl_trunk3. Give the zone editor to your admins
Section titled “3. Give the zone editor to your admins”Framework admins can already use it. To give it to a group:
add_ace group.admin sl_trunk.editor allow4. Restart and check the console
Section titled “4. Restart and check the console”On start, the server console says what sl_trunk found:
[sl_trunk] framework: qb[sl_trunk] inventory: qb-inventoryIf it says no supported inventory found, start ox_inventory, qb-inventory or qs-inventory before sl_trunk.
Updating
Section titled “Updating”Replace everything except the files you changed (config.lua, locales/, data/items.lua, data/fallback.lua, data/loot.lua) and keep data/zones/custom/ and data/footprints_auto.lua, which your server writes. Check the changelog for new options.