Skip to content

Commands & permissions

Commands, default keys and staff permissions of Cuxial Gardener.

Cuxial Gardener has two player commands and three staff commands. The job itself is played from the NPC panel and the interaction options.

Commands ​

CommandWhoWhat it does
/gardresetCrew ownerCancels the job in progress. Vehicles and tools are removed and nobody is paid. Not available while the job is being paid.
/gardleaveCrew membersLeaves the crew. The owner cannot leave while a job is in progress: reset it first.
/gardlistStaffLists the crews: number, members, region and phase. Also works from the server console.
/gardclose <crew>StaffCloses the crew with that number and cancels its job. The action is written to the audit table and to the Discord log.
/gardfast [count]Staff, debug onlyCompletes count tasks of your own job in progress, or all of them if omitted. Does nothing unless debug is on.

<crew> is required and [count] is optional. Every name can be changed in commands of shared/config.lua; set name = false to disable a command.

Staff permissions ​

The staff commands are restricted to the group set in commands.<id>.restricted, group.admin by default. A player needs to belong to that group:

server.cfg
cfg
add_principal identifier.license:xxxxxxxxxxxxxxxx group.admin

To use another group, change the value in the config:

shared/config.lua
lua
commands = {
    reset = { name = 'gardreset' },
    leave = { name = 'gardleave' },
    list = { name = 'gardlist', restricted = 'group.mod' },
    close = { name = 'gardclose', restricted = 'group.admin' },
    fast = { name = 'gardfast', restricted = 'group.admin' },
},

/gardfast checks debug when the resource starts. Turn on debug in the config, or set setr cuxial_gardener_debug 1 above the ensure line, and restart the resource.

Who can do the job ​

The job option of the config decides it: 'all' for everyone, or a list of framework jobs. It is checked when the panel opens, when a player is invited and when the job starts. Each region also asks for a minimum level from every crew member.

Keys ​

KeyWhat it does
EDeliver the trucks, hitch or unhitch the lawn mower from the seat, plant a flower, close the end-of-job summary.
HCancel flower placement.
GClimb down the ladder.
YAccept a crew invitation.
NDecline a crew invitation.
BackspaceHide the tip on screen.

These are the defaults of keys in shared/config.lua. Each player can rebind them in the game settings, under key bindings.

Changing keys only affects players who have never joined with the job installed. The game remembers the binding of everyone else.

© Cuxial