Levels
The Eleven Comercios level system for FiveM: days open, orders delivered and other metrics, automatic promotion, the default ladder and what each level unlocks.
Every business has a level. It goes up on its own when it meets every requirement of the next level, and each level unlocks more staff, more ovens and new licenses. Employees see it under Business → Levels (view_niveles permission).
How it works
- Levels are per business type. Each type has its own ladder, with a name and color for every level.
- Each level has automatic requirements: "metric ≥ threshold" rules the script works out from the business's data.
- Every few minutes, businesses with at least one employee online are checked. If they meet everything for the next level, they move up. Online employees get a notification and it's written to the history.
- Each level can also show rewards as text (roleplay perks your server decides) and images.
Ladders, rules and rewards are edited in the panel under Catalogs → Levels. An admin can also raise or lower a business's level by hand from its page (Businesses → Levels tab).
Built-in ladder
On install the script creates the types RESTAURACION, MECANICO, OCIO NOCTURNO, PERIODISMO and TRANSPORTE, each with four levels. The tablet numbers them from zero:
| On the tablet | Name | Default requirements to reach it |
|---|---|---|
| Level 0 | Emprendedor (Entrepreneur) | Starting level |
| Level 1 | Negocio Consolidado (Established business) | 400 orders delivered · 21 days open |
| Level 2 | Empresa Líder (Leading company) | 1,000 orders delivered · 56 days open · 3 employees with shifts |
| Level 3 | Imperio Empresarial (Business empire) | 1,600 orders delivered · 96 days open · $400,000 revenue · 3 deals signed · 50 followers on Eco |
Figures are cumulative since the business was created. After the first start you can change them in the panel: the script won't overwrite them again.
Note
The "Followers on Eco" rule for Level 3 reads the eleven-phone social network. Without that resource, Eco rules are ignored and the business levels up on the remaining requirements.
Available metrics
| Metric | What it counts |
|---|---|
| Orders delivered | Orders that reached delivered. |
| Orders paid | Orders marked as paid. |
| Revenue | Money from paid orders. |
| Unique customers | Distinct customers who bought something. |
| Orders with a deal | Orders with a discount or deal applied. |
| Days open | Days on which staff added up at least Config.Levels.OpenDayMinMinutes minutes on duty (120 by default) and at least one order was delivered. |
| Days with any activity | Days with any shift, however short. |
| Employees with shifts | Distinct employees who have completed a shift. |
| Staff hired | Current employees. |
| Deals signed | Discounts and deals created on the menu. |
| Products on the menu | Products registered on the menu. |
| Account balance | Money in the company account. |
| Eco verified · Eco followers · Eco posts | Data from the business account on the eleven-phone social network. |
What each level unlocks
On top of any text rewards you add, the script applies these caps by level (default config.lua values):
| Perk | Level 0 | Level 1 | Level 2 | Level 3 |
|---|---|---|---|---|
| Max staff | 15 | 20 | 25 | 30 |
| Crafting points | 1 | 2 | 3 | 4 |
| Street sales, wifi and vending licenses | — | Can be bought | Yes | Yes |
| Food truck | — | — | Can be bought | Yes |
Full decoration catalog (eleven-housing) | — | — | Yes | Yes |
All of these thresholds are set in config.lua: see Business config.lua and Street, wifi and vending.
Note
In config.lua levels use the internal numbering, which starts at 1. RequiredLevel = 2 is "Level 1" on the tablet, 3 is "Level 2", and so on.
Tip
The sample level names and perk texts are created once per business type, in the server's Config.Locale language, and are never overwritten on restart: your changes stay. They describe the built-in perks (carts, vending machines, food truck, decoration, more staff and ovens). Review them under Catalogs → Levels and adapt them to your city.