Maintenance and blackouts
Maintenance in Eleven Comercios for FiveM: electrical boxes, trash, spills and graffiti that wear down, and blackouts that stop the card terminal and crafting.
Premises get dirty and break down over time. Admins place maintenance nodes (electrical boxes, trash, spills, graffiti) and on-duty employees repair or clean them. A neglected shop sells for less, and a broken electrical box leaves it in the dark.
Node types
| Category | Kind | How it behaves |
|---|---|---|
Electrical box (electrical) | Fixture | Always there. Below 15 % it breaks: it swaps to the broken prop and triggers its consequence (usually a blackout). Repairing it takes a mini-game. |
Trash (trash) | Dirt | Shows up below 60 % and disappears once cleaned. |
Spill (spill) | Dirt | Same as trash. |
Graffiti (graffiti) | Dirt | Same as trash, on walls. |
Each node wears down at its own pace (decay_per_hour, set by the admin). Thresholds belong to the category and are changed in Config.Maintenance.Categories (see Business config.lua).
Repairing and cleaning
- Go on duty and walk up to the node.
- Use the
ox_targetoption (ALT): Repair electrical box, Pick up trash, Clean or Clean graffiti. - If the category has a mini-game, it's played first. Failing it cancels the repair.
- A progress bar runs with the matching animation.
Only nodes below the threshold can be repaired. A node can also require an item as a tool or material (it's consumed) and pay the employee a reward in cash or bank. The admin sets both per node.
Blackouts
If an electrical box with the Blackout consequence breaks, inside the premises perimeter:
- the lights go out,
- the card terminal stops taking payments,
- crafting stops working.
Everything comes back once the box is repaired. An admin draws the perimeter on the business page in the panel (World tab); with no perimeter, the blackout doesn't apply. The food truck has its own power and keeps working.
Cleanliness and prices
Premises cleanliness is the average condition of their dirt nodes. With spotless premises, NPCs pay normal prices. With abandoned premises they drop to Config.Maintenance.MinCleanlinessFactor (75 % by default). This affects the NPC seller.
The Condition tab
Under Business → Condition (view_maintenance permission) employees see:
- Overall cleanliness of the premises (from spotless to unsanitary).
- Each node with its condition and how long it has gone unattended.
- Whether there's a blackout in progress.
If the business has no nodes placed, the tab says so.
For admins
- Nodes and the perimeter are placed from the business page in the panel, World tab. See Admin panel.
/mntopens a debug menu to force a node's condition (requires theadminACE).