Configuration

The configuration options are listed below, with no additional explanations provided on this page as the code comments thoroughly explain each option.

config.lua

return {
    debug = false,

    -- Admin permissions for commands
    admin = {
        restock = { 'group.god', 'group.admin' },
        setstock = { 'group.god', 'group.admin' },
        rotate = { 'group.god', 'group.admin' },
    },

    -- Command to open the shop, nearest one (set to false to disable)
    command = 'shop',

    -- Keybind to open shop, nearest one (set to false to disable)
    keybind = false,
    keybindDescription = 'Open Shop',

    -- Global defaults for all locations (can be overridden per-location)
    defaults = {
        type = 'marker',           -- 'npc' or 'marker'
        spawnDistance = 50.0,   -- Distance to spawn NPC / activate marker

        npc = {
            model = `s_m_y_dealer_01`,
            scenario = 'WORLD_HUMAN_SMOKING',
        },

        marker = {
            type = 1,
            scale = { x = 1.0, y = 1.0, z = 0.5 },
            color = { r = 255, g = 255, b = 255, a = 100 },
        },

        target = {
            distance = 2.5,
        },
    },

    -- Enable rotating item system (items have a chance to appear)
    -- Items rotate on resource restart or manual command
    rotation = {
        enabled = true,            -- Set to true to enable rotating items
        maxItems = 15,              -- Maximum number of items to show at once (0 = no limit)
        guaranteedCategories = {},  -- Categories that always appear (e.g., {'ammo', 'tools'})
        minPerCategory = 1,         -- Minimum items per category (if category has items)
    },

    -- Configure where item images are loaded from
    images = {
        -- Base path for item images (NUI path format)
        -- Examples:
        --   'nui://ox_inventory/web/images/'
        --   'nui://qb-inventory/html/images/'
        --   'nui://qs-inventory/web/images/'
        path = 'nui://ox_inventory/web/images/',
    },

}

config_paymentmethods.lua

config_modes.lua

config_locations.lua

config_items.lua

Last updated