Skip to content

Brick Shops configuration

Restart brick_shops after editing config.lua or server_config.lua.

config.lua is visible to clients. It contains these owner-facing sections:

Section Purpose
Config.Locale Lua locale used by the resource.
Config.Debug Disabled-by-default diagnostics.
Config.Commands Administrator creator command, default shopcreator.
Config.Interaction Target preference, marker design, browse/manage keys, and distances.
Config.DefaultShop Default identity, NPC, blip, theme, hours, access, and ownership values for new shops.
Config.PaymentAccounts Cash/bank checkout choices.
Config.Loyalty Global earning and redemption switches, rates, minimum, and per-order cap.
Config.Management Analytics window and minimum withdrawal.

Do not place character identifiers, licenses, webhooks, or other secrets in this file.

Target interaction is preferred by default. If no usable target zone exists for one store, marker interaction remains available:

  • E browses the store by default;
  • G opens management for an authorized player by default.

If the target provider stops while shops remains active, marker interaction takes over. Restart Brick Shops after the target provider returns.

Config.Loyalty.Enabled is the global master for earning, redemption, catalog data, and the customer balance UI. RedemptionEnabled disables redemption without disabling earning.

Per-shop values can opt out or override rates, but cannot enable loyalty when the global program is disabled. The defaults award 0.1 point per currency unit and redeem 10 points per currency unit, with a minimum of 10 points and a maximum order discount of 5000 basis points (50%).

Opening hours use UTC server time. Use 0 through 24 for an all-day store.

Stock and maximum stock use -1 for unlimited. Finite maximum stock caps the saved quantity; values above that maximum must be corrected explicitly.

server_config.lua owns administrator sources and optional logging URLs:

ServerConfig.AdminWithAce = true
ServerConfig.AdminWithLicense = {
['license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'] = true,
}
ServerConfig.AdminWithIdentifier = {
['CHARACTER_ID'] = true,
}

These sources use OR semantics. Character identifiers are QBCore/QBX citizen IDs or complete ESX character identifiers. Keep populated allowlists and webhook URLs only in the live server-owned copy; never commit or distribute them.

Unrestricted shop creation, editing, archiving, restoration, and permanent deletion remain administrator-only. Owners and permitted workers use the management console, while purchases and management changes are validated by the server.