Admin panel config.lua
The eleven-comercios-admin config.lua for FiveM: language, groups with access, panel command, wholesale webhook, eco quality, order limits and optional extras.
The eleven-comercios-admin/config.lua file controls the panel's language and access, the wholesaler and a few optional features that ship turned off.
Access and command
| Key | Default | What it does |
|---|---|---|
Config.Locale | 'en' | Language of the panel and its notifications: 'en' or 'es'. Use the same one as in eleven-comercios. |
Config.AdminGroups | { ['admin'] = true } | Groups with panel access. Each one is checked as the group.<name> ACE. |
Config.AdminCommand | 'comerciosadmin' | Command that opens the panel. |
Config.Debug | false | Debug messages in the console. |
To give access to more groups:
Config.AdminGroups = {
['admin'] = true,
['god'] = true,
}
On top of these groups, anyone with the eleven-comercios.admin ACE can open the panel. See Commands and permissions.
Blocked items
Config.BlockedItems lists items that can't be added to the wholesale catalog. money and black_money by default. Keep the same list as in the eleven-comercios config.lua.
Wholesale webhook
Config.WholesaleWebhook posts a message to a Discord channel for wholesale operations.
| Key | Default | What it does |
|---|---|---|
enabled | false | Turns the messages on. |
url | '' | Discord webhook URL. |
botName | 'Wholesale' | Name it posts as. |
botAvatar | '' | Avatar URL. |
color | 3066993 | Message card color (decimal integer). |
Warning
Treat the webhook URL like a password: anyone who has it can post to your channel.
Wholesale orders
Config.WholesaleOrders:
| Key | Default | What it does |
|---|---|---|
MaxLines | 30 | Different products per order. |
MaxQtyPerLine | 500 | Max units of the same product. |
MaxTotal | 1000000 | Max amount per order. |
MaxPendingPerJob | 10 | Uncollected orders per business. |
CooldownMs | 3000 | Cooldown between orders from the same player. |
PickupDistance | 5.0 | Meters from the NPC to collect. |
PickupClusterRadius | 15.0 | NPCs closer than this count as a single point. |
Eco products
| Key | Default | What it does |
|---|---|---|
Config.WholesaleEcoSellEnabled | false | Lets players sell eco products to the wholesaler (needs eleven-farming). |
Config.QualityMultiplier | { 1.0, 1.2, 1.5 } | Sale price multiplier by the product's stars (★, ★★, ★★★). No stars counts as ★. |
Optional features
They all ship turned off.
Web menu
Config.Integrations = { Web = false }. With false, the Web menu tab on the business page and its counter don't show. Set it to true only if you have a website that reads each business's menu (ask us in a ticket).
Farm surplus
Config.FarmSurplus: an on-duty farm job sells non-eco animal products to the wholesale NPC at a fixed price. The money goes to the job's company account, not to the player, and every sale is stored in the comercios_granja_excedentes table.
| Key | Default | What it does |
|---|---|---|
enabled | false | Turns the sale on. |
job | 'farmer' | Job allowed to sell surplus. |
price | 1 | Dollars per unit. |
distance | 5.0 | Meters to the NPC. |
items | sample list | Accepted items. Use your farm's own. |
Menu limited by a website
Config.WebMenu: if you run a website with the comercios_postulacion_businesses table, each business can only craft the recipes of the products on its menu on that website (and their sub-recipes). Leave it off if you don't have that website.
| Key | Default | What it does |
|---|---|---|
enabled | false | Turns the limit on. |
database | 'web' | The website's database. |
slots | 9 | Menu slots read per business. |
refreshMs | 300000 | How often the menu is read again. |
Taxes on eco sales
Config.TaxBridge: with a resource that exposes Accrue(citizenid, category, amount, opts), eco sales to the wholesaler are reported to it as income. Nothing is withheld; if the resource is missing, it does nothing.
| Key | Default | What it does |
|---|---|---|
enabled | false | Turns income reporting on. |
resource | 'eleven-impuestos' | Resource the income is reported to. |
category | 'actividad' | Category used when reporting. |