Skip to the content
Docs

Installation

Follow these steps in order.

1. Place the resource

Drop the 5code-loadouts folder into your server's resources directory.

2. Edit config.lua

Open config.lua and set the basics for your server.

lua
Config.Framework       = 'auto'          -- 'auto' | 'qb-core' | 'qbx_core' | 'esx'
Config.InventorySystem = 'ox_inventory'  -- 'qb-inventory' | 'ox_inventory' | 'codem-inventory'
Config.InteractionMode = 'target'        -- 'target' | 'textui'
Config.NotifySystem    = 'ox_lib'        -- 'qb' | 'ox_lib' | 'codem-notification' | 'esx'

Config.Job = 'police'
Config.NPC = {
    model    = 'mp_m_armoured_01',
    coords   = vector4(452.6, -993.1, 30.7, 90.0),
    scenario = 'WORLD_HUMAN_GUARD_STAND',
    label    = 'Armory Officer'
}

Config.BossGrades = { 3, 4 }

3. Grant admin access via ACE

Add the admin ACE line for each admin's license identifier in server.cfg.

cfg
add_ace identifier.license:YOUR_LICENSE_HERE loadouts.admin allow

4. Add to server.cfg

Make sure 5CODE Loadouts starts after its dependencies.

cfg
ensure oxmysql
ensure qb-core            # or qbx_core / es_extended
ensure ox_inventory       # or your chosen inventory
ensure 5code-loadouts

5. Start the server

On first start, the script auto-creates its database tables. Watch the console for any errors.

6. Test in-game

Go to the armory NPC coordinates, interact, and confirm you can open the armory UI. If you are in a boss grade or have loadouts.admin, you will also see the management UI.