Route Creator
The route creator lets admins place cabinets and fuse boxes in the world and group them into service routes, without touching config.lua. Routes made here show up on the work order board straight away, and every player sees new boxes without a restart.
Open it with the command from Config.Placement.command, /electriceditor by default. Leave your vehicle first: Leave your vehicle before opening the creator.
Settings and permission
Config.Placement = {
enabled = true,
command = 'electriceditor',
ace = 'command.electricplacer',
maxDistance = 0,
}| Setting | What it does |
|---|---|
enabled | false turns the creator off. The commands are not registered and the server refuses every creator request. |
command | The chat command that opens the creator. /electriceditor and /electricplacer keep working as well. |
ace | The ACE permission a player needs. |
maxDistance | 0 lets you place boxes anywhere. Any other value is the largest distance in metres between your character and the box when you save or delete it: Move closer to the placement before saving. Your character stays where it stood while you fly the camera. |
The server checks the permission on every request: opening the list, saving and deleting. The player must have the ACE from ace, be alive, be in the main world and have a character loaded. Otherwise: You do not have permission to use the electrician placer.
Give the permission in server.cfg, for example to your admin group:
add_ace group.admin command.electricplacer allowA group that already has add_ace group.admin command allow passes as well, because that covers every command.* permission. If you change ace to a name of your own, grant that name instead.
The creator window
| Part | What it does |
|---|---|
| Build a service route | Starts the route wizard, see Building a route. |
| Large breaker box / Small fuse box | Opens the list of saved locations of that type, with the number of each. |
| Refresh | Loads the latest locations from the server. |
| ? | Shows Creating a service location: the steps and the camera keys. |
Esc goes back one step and closes the creator from the first page. The top bar shows how many locations are saved in total.
| Box type | Repair |
|---|---|
| Large breaker box | A ground-mounted distribution cabinet. See Cabinet Repair. |
| Small fuse box | A compact wall-mounted box. See Fuse Box Repair. |
Building a route
Build a service route is the way to add new boxes. You set up the route once, then place its boxes one after another.
- Under Service route, keep Create new route or pick an existing route to add boxes to.
- Under Box type, choose Large breaker box or Small fuse box. You can switch the type between boxes.
- Press Place first box. The placement camera opens, see Placing a box.
- After saving you are back in the wizard. Placed on this route: 1 counts your boxes. Press Place another box for the next one.
- Press Finish route when the round is complete.
The route settings can’t be changed once the first box is placed.
Names
Boxes placed with the wizard are named from the street they stand on, for example Distribution cabinet · Elgin Ave or Service fuse box · Chupacabra St. When there is no street name, the name of the area is used.
A new route is named automatically by default: The route is named from the area the first box lands in.
| Automatic route | Value |
|---|---|
| Name | The area of the first box, for example La Mesa service round. Without an area name the street is used, and without either: Service round. |
| Region | Looked up in Config.Job.zoneRegions by the area code of the first box. An area that is not listed counts as Paleto from Y 5400 northwards, Sandy from Y 1200 northwards, and City below that. |
| Payout | Config.Job.defaultRoutePayout (1500 by default). |
Press Name it myself to set them yourself: Route name, Region (City, Sandy or Paleto) and Route payout, a whole number from 0 to 100,000. Name it automatically switches back.
When a new route gets a name that another route already has, a number is added: Elysian Island service round 2, Elysian Island service round 3 and so on. Box names are not numbered.
Routes made in the creator show on the board with the region as their service area, the description Service the electrical boxes on this route., the complexity Routine and the estimated time 5-15 min. See Work Orders.
Placing a box
The placement camera is a free camera. Your character stays frozen where it stands, and a see-through copy of the box shows where it will go.
| Key | Action |
|---|---|
W A S D, mouse | Fly / look around |
Shift / Alt | Faster / precision. Precision also makes rotation and height steps finer. |
Space / Ctrl | Camera up / down |
Scroll, ← → | Rotate box. One scroll step turns it 5 degrees, 1 degree with Alt. |
↑ ↓ | Adjust box height |
E | Lock position / Unlock position |
X | Reset position |
Enter | Save location |
Esc / Backspace | Back to creator without saving |
- Aim at the ground or at a wall. The box follows the point you aim at and the panel shows Ground surface found or Wall surface found. On a wall the box is turned to face away from it, with its back against the wall. On the ground it faces the camera.
- Press
Eto lock the position (Position locked). You can now fly around to check the box. Rotation and height can still be changed. - Press
Enterto save. The notice Placement saved. shows in the creator.
You can’t lock or save while you aim at nothing: Aim at a wall or the ground before placing. and Aim at a surface before saving.
Managing saved locations
Open Large breaker box or Small fuse box to see the saved locations of that type. Each shows its name, its routes, its coordinates and its distance from you. Search by name, route or region with Search locations, routes or regions, or filter by region.
| Button | What it does |
|---|---|
| Preview | Opens a free camera in front of the box to look at it. Nothing can be changed. |
| Teleport | Closes the creator and puts you in front of the box. |
| Edit | Opens Edit location, see below. |
| Delete | After Remove this location from its routes? and Delete location the box is removed: Box removed. |
Edit location has the Location name, the Box type and the Service route. Pick another route to move the box to it, or + Create new route with a Route name, Region and Route payout. Open placement camera opens the camera in front of the box with its position locked. Press E to unlock it and aim at a new spot, or only rotate and raise it. X puts it back where it was.
Names can be up to 80 bytes, without control characters or ~ < >.
A route without boxes is hidden from the work order board and from the creator. The creator does not rename routes or change the payout of an existing route.
Routes in use
While a crew has a route as its work order, its boxes can’t be edited, moved or deleted, and no boxes can be added to it: A crew is using this route. Finish or cancel it before editing.
When another admin saved a change in the meantime, you get Locations changed. Review the latest boxes before placing. before the camera opens, or Placements changed. Reopen the placer to load the latest version. when you save. Press Refresh and try again.
Where routes are saved
Everything you save goes to data/placements.json inside the resource folder. The server reads it when the resource starts, so routes survive restarts.
The file is laid over the routes in config.lua:
- New routes and boxes are added to the ones from
config.lua. - A box from
Config.Job.sitesthat you edit or delete in the creator is changed or removed through the file. Editing it inconfig.luaafterwards has no effect. - A route from
Config.Job.orderswhose boxes are all gone is hidden.
The data/placements.json that comes with the script already holds 13 routes with 50 boxes around Los Santos, and it removes the four example boxes from config.lua. The two example routes in config.lua are hidden for that reason.
Back up data/placements.json before you update the script, and put your copy back afterwards. A new download contains its own copy of the file.
To rename a route or change its payout, stop the resource, edit the route under routes in data/placements.json and start the resource again. Edits made while the resource runs are lost, because the server overwrites the file with its own copy on the next save. Keep names to 80 bytes, the region city, sandy or paleto, and the payout a whole number from 0 to 100000.
If the file can’t be read, the job runs with the routes from config.lua only, the server console prints an error, and the creator won’t open: Saved placements could not be read. Check the server log before editing.

