Skip to content

Commands & permissions

Commands, keys and permissions of Cuxial Electrician, and who can use each one.

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 ​

CommandWhoWhat it does
/elecresetCrew ownerCancels the job in progress. Trucks, ladders and platforms are removed and nobody is paid.
/elecleaveCrew membersLeaves the crew. The owner cannot leave while a job is running; they must reset it first.
/eleclistStaffLists the crews: number, members, region and phase. Also works from the server console.
/elecclose <crew>StaffCloses 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 onlyMarks 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 ​

KeyWhat it does
EDelivers the trucks at the drop-off, repairs from the platform or the ladder, and closes the final summary.
↑Raises the platform.
↓Lowers the platform.
GClimbs down the ladder.
YAccepts a crew invite.
NDeclines a crew invite.
BackspaceHides 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:

server.cfg
cfg
add_principal identifier.license:xxxxxxxxxxxxxxxx group.admin
shared/config.lua
lua
commands = {
    list = { name = 'eleclist', restricted = 'group.mod' },
    -- ...
},

Who can work ​

ActionRequirement
Open the panelBe within npc.menuDistance of the NPC and have a job allowed by job
Be invited to a crewBe 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 moneyCrew owner
Start a regionEvery 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 trucksAny crew member, at the wheel of a job truck

© Cuxial