Business config.lua
General options in the eleven-comercios config.lua for FiveM: language, key, stashes, staff and level caps, integrations, fines, bonuses, refunds and upkeep.
This page covers the general options in eleven-comercios/config.lua. Street sales options are in Street, wifi and vending and delivery options in Delivery, fuel and NPC. The admin panel has its own file: Admin panel config.lua.
Tip
After changing config.lua, restart the server. Many values (stashes, points, NPCs) are registered when the resource starts.
General
| Key | Default | What it does |
|---|---|---|
Config.Locale | 'en' | Language of the game texts and the tablet: 'en' or 'es'. Texts live in locales/<code>.json and locales/ui/<code>.json; missing keys fall back to English. |
Config.Debug | false | Debug messages in the console. |
Config.BlockPlayerOnNui | true | Locks the character's controls while the tablet is open. |
Config.OpenTabletKey | 'HOME' | Default key to open and close the tablet. Each player can rebind it in the GTA settings. |
Config.InteractionDistance | 2.0 | Default radius of interaction zones. |
Config.ZoneLoadDistance | 150.0 | Distance at which a business's zones, NPCs and carts are loaded. |
Inventories
Config.Stashes sets the slots and weight (in grams) of each inventory type:
| Inventory | Slots | Weight |
|---|---|---|
storage | 150 | 800000 |
counter | 50 | 200000 |
locker | 30 | 100000 |
mailbox (delivery mailbox) | 50 | 250000 |
| Key | Default | What it does |
|---|---|---|
Config.StashSizeOverrides | {} | A custom storage size for specific businesses. |
Config.StashOverrides | {} | Makes a business's storage an existing stash. |
Config.MailboxSuppliers | {} | Outside jobs that can open any business's delivery mailbox. |
Config.StashSizeOverrides = {
['burgershot'] = { slots = 300, weight = 5000000 },
}
Config.MailboxSuppliers = { 'farmer' }
Point placement
Config.Placement:
| Key | Default | What it does |
|---|---|---|
DefaultRadius | 2.0 | Starting radius when placing a point. |
MinRadius / MaxRadius | 0.5 / 10.0 | Radius limits. |
RadiusStep | 0.1 | How much the radius changes per wheel step. |
Colors | — | Cylinder color for each point type (r, g, b, a). |
Caps per level
Levels use the internal numbering (1 = the first level, which the tablet calls Level 0).
| Key | Default | What it does |
|---|---|---|
Config.Employees.Base | 15 | Max staff at the first level (all grades included). |
Config.Employees.PerLevel | 5 | Extra staff per level. |
Config.Employees.SingleJob | false | true: hiring someone removes their other jobs. false: they keep them (Qbox multi-job). |
Config.Employees.MinAge | nil | Minimum character age to be hired. Only used when your qbx_core doesn't provide its own GetMinHireAge export. nil = no limit. |
Config.Crafting.Base | 1 | Crafting points at the first level. |
Config.Crafting.PerLevel | 1 | Extra crafting points per level. |
Config.Levels.OpenDayMinMinutes | 120 | Minutes on duty the staff must add up in a day for it to count as a "day open". |
Decoration
Only with eleven-housing. Config.Decoration:
| Key | Default | What it does |
|---|---|---|
FreeRooms | {} | Parts of the furniture catalog any business can use. |
MinLevel | 3 | Internal level that unlocks the full catalog (3 = Level 2 on the tablet). |
VipUnlock | true | Whether a boss with the VIP Business rank from eleven-vip unlocks the full catalog. |
Base | 40 | Max furniture at the first level. |
PerLevel | 20 | Extra furniture per level. |
SellPricePerUnit | 1 | Dollars per unit when selling stored furniture from the tablet. |
Integrations
Wifi, the social network (Eco), company cards and decoration have no key: they turn on by themselves when eleven-phone, eleven-banking or eleven-housing is running. Otherwise the tablet hides them. What you do configure is Config.Integrations:
| Key | Default | What it does |
|---|---|---|
Applications | false | Set it to true if something of yours (a website, a bot, another resource) sends job applications through the AddApplication export. Shows the Applications tab (see Business management). |
Web | false | Business data managed from your own external website: the business page menu, the owner, VIP businesses and ownerless businesses. Leave it false if you don't run that website. |
WebDatabase | 'web' | That website's database. Only used with Web = true. |
Note
Web = true expects the Eleven website's business and user tables in that database (comercios_postulacion_businesses, web_users). It isn't a feature that works on any server out of the box: if you want to connect it to your website, ask us through a ticket.
Fleet fines and taxi
| Key | Default | What it does |
|---|---|---|
Config.FleetFines.Payee | 'police' | Job whose account receives fleet fine money (the ChargeFleetFine export, called by your police or speed camera script). |
Config.FleetFines.PayeeLabel | 'LSPD' | The name shown for that recipient. |
Config.TaxiJob | 'taxi' | Job of the taxi fare flow: a taximeter can open the tablet's charge screen with the pcomercio2:openTaxiOrder client event (see Exports). |
VIP and ownerless businesses
They only work with Config.Integrations.Web = true and ship turned off.
| Key | Default | What it does |
|---|---|---|
Config.VipBusinesses.Enabled | false | If the owner listed on the website loses the VIP Business rank (eleven-vip), the business closes: doors locked, no tablet, no duty and no furniture. Everything comes back once the rank is back. |
Config.VipBusinesses.CheckInterval | 300 | Seconds between checks. |
Config.OwnerlessBusinesses.Enabled | false | Businesses listed in OpenToPublic that have no owner on the website stay open to the public: doors open and no maintenance wear. |
Config.OwnerlessBusinesses.OpenToPublic | {} | Jobs that open without an owner, e.g. { gym = true }. |
Doors are opened or locked through eleven-doorlocks, if it's running.
Refunds and bonuses
| Key | Default | What it does |
|---|---|---|
Config.Refunds.Days | 7 | Days after payment during which an order charged by card terminal, or a paid invoice, can be refunded. It's refunded once, to the account the money came from. |
Config.Bonuses.WeeklyCap | 10000 | Maximum a business can give one employee in bonuses from Monday to Sunday. |
Config.Bonuses.MinAmount | 100 | Minimum amount of each bonus. |
Bonuses come out of the business account and go to the employee's bank. See Business management.
Blocked items
Config.BlockedItems lists items that can never be registered as products or sold from carts or vending machines. money and black_money by default. Keep the same list in the admin panel's config.lua.
Maintenance
Config.Maintenance:
| Key | Default | What it does |
|---|---|---|
EmoteResource | 'rpemotes' | Emote resource (with the rpemotes API: EmoteCommandStart / EmoteCancel) used while repairing or cleaning. If it isn't running, a simple animation is used. |
MinCleanlinessFactor | 0.75 | Floor of the price the NPC seller pays with fully dirty premises (0.75 = up to 25 % less). 1.0 turns the penalty off. |
Categories | — | Behavior of each node category (below). |
DefaultCategory | fixture, 60 / 15 | Behavior for nodes with an unknown category. |
Each category (electrical, trash, spill, graffiti) accepts:
| Field | What it does |
|---|---|
kind | 'fixture': always there and breaks. 'dirt': appears when dirty and disappears when cleaned. |
repairThreshold | Below this condition (in %) it can be repaired or cleaned. 60.0 by default. |
brokenThreshold | Below this condition a fixture breaks. 15.0 by default for the electrical box. |
targetRadius | ox_target aiming margin on the node. |
targetDistance | Max distance from the player to the node. |
minijuego | { resource, games = { { game, config } } }. One game is drawn at random for each repair; games = {} = no mini-game, just a progress bar. |
By default only the electrical box has a mini-game (wires from eleven-minijuegos). Without that resource, ox_lib's skillCheck is used.
electrical = {
kind = 'fixture', repairThreshold = 60.0, brokenThreshold = 15.0, targetRadius = 2.0, targetDistance = 3.0,
minijuego = {
resource = 'eleven-minijuegos',
games = {
{ game = 'wires', config = { wires = 5, timer = 25 } },
},
},
},