Skip to content

Configure Brick Shops Creator

Shared settings are in brick_shops/config.lua; administrator identifiers and logging are in brick_shops/server_config.lua. Restart brick_shops after changing either file. Existing shops retain their saved values; use the creator or management menu to edit them.

brick_shops/config.lua
Config.Interaction.PreferTarget = false

The default is true, which prefers the bridge-selected target. Set it to false to always use markers: E browses and G opens management for an authorized player. DrawDistance defaults to 18.0 game units; DefaultInteractDistance defaults to 2.0. Saved shops can have their own interaction radius.

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.

The default shop interaction keys are:

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

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%). For example, a purchase of 100 currency units earns 10 points at the default rate; those 10 points can redeem 1 currency unit.

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

Stock -1 means unlimited availability. Maximum stock -1 means no capacity limit. 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,
}

Any one enabled grant gives administrator access. AdminWithAce = true enables Brick Bridge’s admin permission check, which accepts the framework’s administrator permission or the server’s command administrator ACE. It is enabled by default. Use your framework’s normal administrator setup, or add an exact player license to AdminWithLicense as shown above.

AdminWithIdentifier uses QBCore/QBX citizen IDs or complete ESX character identifiers, including any multicharacter prefix. Empty lists grant nobody through that source. Save the file and restart brick_shops; an allowed player can then open /shopcreator.

These grants provide creator access across stores. Keep populated identifiers and logging URLs private. A player’s license: identifier is different from the server’s Cfx license key.