FAQ
Eleven Comercios FAQ for FiveM: Qbox, ox_inventory, languages, optional resources, gas stations, sample data, VIP businesses, licensing and getting support.
Compatibility
Does it work with QBCore or ESX?
No. Eleven Comercios is Qbox only (qbx_core): every business is a Qbox job with its own grades, and both resources list it as a dependency. See Requirements.
Does it work with an inventory other than ox_inventory?
No. Storages, counters, lockers, delivery mailboxes, carts and vending machines are all ox_inventory stashes, and the 143 ingredients go into its data/items.lua. See Requirements and Inventory items.
What do I need installed?
qbx_core, ox_lib, oxmysql, ox_inventory, ox_target, object_gizmo and Renewed-Banking. Everything else is optional: each feature that depends on another resource hides itself or falls back when that resource isn't there. You don't need to change anything in config.lua. The full table is in Requirements.
Do I need other Eleven resources?
Not to start it. Some features only appear if you have them, and they're detected automatically: wifi and the Eco social network (eleven-phone), company cards (eleven-banking), premises decoration (eleven-housing) and NPC home delivery (eleven-npc-events). If one is missing, the tablet hides that part and everything else works. They aren't part of this package. See Requirements.
Which bank does it use?
Company accounts live in Renewed-Banking. If eleven-banking is also running, accounts are created there instead, and company cards and account signing rights turn on. See Business management.
Can businesses run gas stations?
Not out of the box. The Fuel tab and the panel's Gas stations page ship turned off: they need a fuel script with business gas stations, using its own exports that no public fuel script provides. Without it, both stay hidden and everything else works the same. See Requirements.
Does it work with my dispatch?
Business vending machine robberies alert eleven-police if it's running, and always fire the eleven-comercios:vendingRobberyAlert server event, which you can hook into any dispatch. The police job is set in Config.VendingOwned.Robbery.PoliceJob. See Street, wifi and vending.
Will it clash with my job or business scripts?
It only manages the jobs you register under /comerciosadmin → Businesses. Every other job on your server is left alone: the tablet key simply does nothing for them. If you already run another script for a business, don't register it here. Public vending machines can show a double option alongside the ox_inventory shop: see Installation.
Can I hook it into my other scripts?
Yes, through server and client exports: the business list, fines for fleet vehicles (ChargeFleetFine), job applications from your website or bot (AddApplication), blackouts, delivery zones and the wholesaler. See Exports.
Installation
Do I have to import any .sql file?
No. On first start each resource creates its comercios_* tables and the panel installs the sample data only once (it's recorded in comercios_migrations). New columns from later versions are added automatically. See Database.
What order do they go in server.cfg?
Dependencies first, then the panel before the tablet: ensure eleven-comercios-admin followed by ensure eleven-comercios. The full block is in Installation.
Can I start it with ensure without restarting the server?
Don't, neither the first time nor when updating. Both resources register stashes, points and NPCs on start and call each other: restart the whole server. See Installation.
Do I have to add the items?
Yes: paste ox_inventory_items/items_comercios.lua into your ox_inventory/data/items.lua and copy the 150 images to ox_inventory/web/images/. If you already have an item with the same name, keep only one. See Inventory items.
I get "You lack the required entitlement"
Your server's license key doesn't belong to the Cfx.re account that bought the script. The steps are in Installation and in the Install with Keymaster guide.
The tablet won't open or I can't see the points
These have fixes in Troubleshooting: the job isn't registered in the panel, the employee isn't on duty, or they're too far from the premises.
Configuration and use
How do I add a new business?
- Create the job in
qbx_core/shared/jobs.lua, with the owner's grade markedisboss = true. - Register it under
/comerciosadmin→ Businesses and give it a type. - Give the job to the owner and have them place the premises points from the tablet.
The full walkthrough, with an example, is in Your first business.
Is there a maximum number of businesses?
The package sets no limit: every job you register in the panel is a business. What's capped per level is each business's staff, ovens and furniture. See Levels.
Where is it configured?
In each resource's config.lua, and almost everything else (businesses, licenses, recipes, wholesalers, levels, points) from the in-game panel. After changing a config.lua, restart the server. See Business config.lua and Admin panel config.lua.
What language is it in?
English and Spanish. Set Config.Locale = 'en' or 'es' in both config.lua files. Every text lives in locales/ (in-game texts in locales/*.json, the tablet and panel in locales/ui/*.json) and you can edit it or add your own translation. The sample data in the database (wholesale catalog and licenses) ships in Spanish and is changed from /comerciosadmin; level names are created in the server language. See Installation.
Do hired players lose their other jobs?
Not by default: the new hire keeps their other Qbox jobs (multi-job). With Config.Employees.SingleJob = true those are removed and they keep only the business job. See Business config.lua.
Can I change the tablet key?
The default is HOME (Config.OpenTabletKey, which only applies to new players). Each player can rebind it under GTA Settings → Key Bindings → FiveM. See Opening the tablet and permissions.
Does it come with sample recipes, businesses or wholesalers?
It comes with a wholesaler with 121 products, 14 stock vehicles and 39 licenses, five business types (RESTAURACION, MECANICO, OCIO NOCTURNO, PERIODISMO and TRANSPORTE) with their level ladders, plus the cooking ingredients. None of it is assigned to a business. There are no sample businesses or recipes: you create them in the panel. See Database, Recipes and crafting and Wholesalers.
Are there VIP businesses or ownerless businesses?
The code supports them, but they ship turned off (Config.VipBusinesses, Config.OwnerlessBusinesses) because they read owners from your own website (Config.Integrations.Web). Without that website, leave them off. See Business config.lua.
Can I turn off features I don't want?
Yes. Under the panel's Settings you switch tablet sections off for every business or for a single one. Home delivery is turned off with Config.Delivery.enabled = false. See Admin panel and Home delivery.
Can I add my own sections or features?
No: the code and the interface are encrypted. You can change every text in locales/. New features are requested by opening a ticket on our Discord.
Performance and data
Is it heavy on the server?
Each business's zones, NPCs and carts only load near the premises (Config.ZoneLoadDistance, 150 m by default), and the automatic level-up check only looks at businesses with at least one employee online. If you see high usage, open a ticket with a resmon screenshot and the version.
What does it store in my database?
Its tables start with comercios_: businesses, orders, menu, staff, points, fleet, licenses, recipes, levels and wholesale. The contents of storages, counters and carts are saved by ox_inventory in its own tables. See Database.
Do I lose businesses when I update?
No. Businesses, orders, recipes and levels are in the database. Back it up first and keep both config.lua files and your locales/. See Updating.
Purchase and license
Where do I download it?
From Keymaster → Granted Assets, with the Cfx.re account you bought it with. See Buy and download.
What can I edit?
Each resource's config.lua, the locales/ folders with every text, and the items in ox_inventory_items/, which you paste into your ox_inventory. The rest of the code is encrypted with Cfx.re escrow, and the interfaces ship compiled. Code changes are requested by ticket. See Licenses and escrow.
Can I move it to another server or account?
If you move machines with the same Cfx.re account, all you need is a license key from that account on the new server. To transfer the license to another account, open a ticket. See Licenses and escrow.
Support
How do I get help?
Open a ticket on our Discord with what you were trying to do, the errors from the server console and F8, and your Qbox, ox_lib, ox_inventory and oxmysql versions. Check Troubleshooting first. See Getting support.
Can you add a feature or change something in the code?
Code changes and new features are requested by ticket, as a suggestion. Check the config and the panel first: you may already be able to adjust it. More questions common to every script are in the general FAQ.