Cuxial Electrician adds two commands for players and three for staff. The job itself is driven from the NPC panel and the interaction options, not from commands.
Commands
| Command | Who | What it does |
|---|---|---|
/elecreset | Crew owner | Cancels the job in progress. Trucks, ladders and platforms are removed and nobody is paid. |
/elecleave | Crew members | Leaves the crew. The owner cannot leave while a job is running; they must reset it first. |
/eleclist | Staff | Lists the crews: number, members, region and phase. Also works from the server console. |
/elecclose <crew> | Staff | Closes the crew with that number and cancels its job. The action is written to the audit table and to the Discord log. |
/elecfast [count] | Staff, debug only | Marks count pending repairs of your own job as done; all of them if omitted. For testing. |
<crew> is required and [count] is optional. Every name can be changed in commands inside shared/config.lua; set name = false to disable a command.
/elecfast only works when debug is on at the moment the resource starts: debug = true in the config or setr cuxial_electrician_debug "1". Keep debug off on a live server.
Keys
| Key | What it does |
|---|---|
| E | Delivers the trucks at the drop-off, repairs from the platform or the ladder, and closes the final summary. |
| ↑ | Raises the platform. |
| ↓ | Lowers the platform. |
| G | Climbs down the ladder. |
| Y | Accepts a crew invite. |
| N | Declines a crew invite. |
| Backspace | Hides the tip on screen. |
These are the defaults from keys in shared/config.lua. Each player can rebind them in the GTA key settings.
Changing keys only affects players who have never joined with the script running. FiveM remembers the binding of everyone else.
Permissions
Staff commands
/eleclist, /elecclose and /elecfast are limited to the group written in their restricted field, group.admin by default. Add your staff to that group, or change the field to the group you use:
add_principal identifier.license:xxxxxxxxxxxxxxxx group.admincommands = {
list = { name = 'eleclist', restricted = 'group.mod' },
-- ...
},Who can work
| Action | Requirement |
|---|---|
| Open the panel | Be within npc.menuDistance of the NPC and have a job allowed by job |
| Be invited to a crew | Be within crew.inviteDistance of the owner, have an allowed job and not be in another crew that is working or has more members |
| Pick the region, start, reset, kick, split the money | Crew owner |
| Start a region | Every member connected, with an allowed job, at the region's minLevel or above and out of cooldown; region free when run.exclusiveRegions = true |
| Deliver the trucks | Any crew member, at the wheel of a job truck |
