Skip to main content

config/config.lua

Global Settings

boolean
default:"false"
Shows polyzones created in-game. Useful when testing shop interaction zones.
string
default:"en"
Locale file to use (e.g. 'en'). Matching locale files live under locales/.
string
default:"auto"
Framework adapter. Options: 'auto', 'qb', 'qbox', 'esx', or 'custom'. Custom requires editing stubs in opensource/client and opensource/server.
string
default:"new"
ESX version when using ESX. Options: "new" or "old".
string
default:"auto"
Inventory adapter. Options: "auto", "ox", "qb", "origen", "tgiann", "esx", "lj", "ps", "codem", or "custom".
string
default:"ox"
Notification system. Options: "ox", "qb", "esx", or "custom".
string
default:"ox"
Progress bar system. Options: "ox", "qb", or "custom".
string
default:"circle"
Ox progress bar style only. Options: "circle" or "bar".
table
Dispatch settings for suspicious sales. Resource can be 'auto' or a supported dispatch name; set to "other" / custom and edit opensource if unsupported.
string
default:"auto"
Interaction system. Options: 'auto', 'ox_target', 'qb-target', 'drawtext', or 'worldinteract' (interact).
number
default:"38"
Key code for drawtext interactions. 38 is [E] by default.
string
default:"OX"
Drawtext UI style. Options: "OLDQB", "QB", or "OX".
string
default:"$"
Currency symbol shown in the sell menu UI.
string
default:"auto"
Path to inventory item images. "auto" detects common inventory image folders.
table
default:"{[\"police\"] = true}"
Jobs counted for PoliceCount checks and dispatch alerts.
boolean
default:"false"
Enable XP awards on sell when items define an Exp field.
boolean
default:"false"
When true, XP is granted via the client AddExp event. When false, the server AddExp opensource hook runs (default pickle_xp).
table
Optional sell progress bar and animation.
boolean
default:"false"
When true, shop coordinates are read from config/sv_config.lua (Locations) instead of client config — useful to protect coords from dumpers.
table
Table of shop definitions keyed by shop id (e.g. 'pawnshop', 'suspiciousbuyer'). See structure below.

Shop Structure

Each entry in Config.Shops is a full shop. Concise example:

presets/

Use LoadPreset(name, data) in files under presets/ to add or overwrite shops in Config.Shops. The built-in "example" preset name is skipped by design — rename your preset when copying it.

config/sv_config.lua

When ServerCoords = true, define locations here:

config/logs.lua

Optional sale logging:
boolean
default:"false"
Enable or disable logging.
string
default:"discord"
Logging service: "discord", "fivemerr", "fivemanage", or "custom" (edit opensource server hooks).
string
default:""
Discord webhook URL or Fivemerr/Fivemanage API key.