SMX logo

SMX Documentation

Production-grade Script Knowledge Base

Build 2026.04 Live Docs



Item Creator

Scripts · FiveM Ready

Core Setup

Config.Command = 'itemcreator'
Config.ItemTable = 'items'

Config.Framework = 'auto'   -- auto, esx, esxold, qbcore
Config.Inventory = 'auto'   -- auto, smx-inventory, qb-inventory, ox_inventory, none

auto mode detects framework and inventory resources from started resource states.

Permission Control

Config.AdminGroups = {
    admin = true,
    superadmin = true
}

Config.AdminPermissions = {
    qbcore = { 'god', 'admin' }
}

ESX/ESX Old uses group checks. QBCore uses HasPermission against configured permission list.

Inventory Adapter Bridge

Config.InventoryAdapters = {
    ['smx-inventory'] = {
        resource = 'smx-inventory',
        refreshExport = '',
        required = false,
        supported = true
    },
    ['qb-inventory'] = {
        resource = 'qb-inventory',
        refreshExport = 'RefreshItems',
        required = true,
        supported = true
    },
    ['ox_inventory'] = {
        resource = 'ox_inventory',
        refreshExport = 'RefreshItems',
        required = true,
        supported = true
    }
}

Set adapter export names here if your inventory fork uses different function names.

UI and Locale Setup

Config.UI = {
    title = 'SMX Item Creator',
    subtitle = 'Live Item Management',
    useLogo = false,
    logoPath = 'img/logo.png'
}

Config.Language = 'en'
Config.Locales = { en = {...}, de = {...} }

All visible UI strings, notifications and server messages are controlled through locale tables.