Skip to content

Commands & permissions

Commands, default keys, supermarket grades and staff permissions of Cuxial Supply.

The job and the supermarket are played from the NPC panel and the interaction options. Players have two commands; the rest are staff tools.

Player commands ​

CommandWhoWhat it does
/supplyresetCrew ownerCancels the run in progress. The van is removed and nobody is paid.
/supplyleaveCrew membersLeaves the crew. The owner cannot leave while a run is in progress: reset it first.

Staff commands ​

CommandWhoWhat it does
/supplyadmin [market]ACE groupOpens the staff panel: market view and editor. market is the id of an active wholesale market (ls, sandy, paleto).
/supplylistACE groupLists the crews: number, members, line and phase. Also works from the server console.
/supplyclose <crew>ACE groupCloses the crew with that number and cancels its run. Written to the audit table and the Discord log.
/supplyfast [count]ACE group, debug onlyCompletes tasks of your own run in progress. Does nothing unless debug is on.
/supplyrestock [store] [fill]Supply staffFills the shelves and the stockroom of a supermarket to fill percent (100 by default). Also works from the server console.
/supplyslots [store|off]Supply staffDraws the shelf slots of a supermarket, with their size, facing and interaction points. off hides them.
/supplyyaw [degrees|flip|reset|list]Supply staffLooking at a product on a shelf, rotates that model in every slot and saves it. reset goes back to the config value, list shows the saved rotations.
/supplyfridge [action]Supply staffTests the animated fridge doors: loop [fridge] [door], set <fridge> <door> <phase>, off, print, or x/y/z/h <delta> to adjust the player's position.
/supplytill [action] [delta]Supply staffTill screens: show, off, print, reload, reset, or x/y/z/h <delta> to move the screen glass of the nearest till.

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

Staff permissions ​

There are two kinds of check:

  • ACE group. /supplyadmin, /supplylist, /supplyclose and /supplyfast are restricted to the group in commands.<id>.restricted, group.admin by default.
  • Supply staff. The actions inside the staff panel and the commands /supplyrestock, /supplyslots, /supplyyaw, /supplyfridge and /supplytill require the framework permission in admin.permission ('admin' by default), checked through Cuxial Bridge. With 'admin', players in the groups admin and superadmin are staff. Inside the panel, holding the ACE permission of /supplyadmin is also enough.
server.cfg
cfg
add_principal identifier.license:xxxxxxxxxxxxxxxx group.admin

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

Who can do what ​

ActivityRequirement
Supply jobThe job option of the config: 'all' for everyone, or a list of framework jobs. Each line also asks for a minimum level from every crew member.
Restock the supermarketJob supermarket with grade 0 or higher, on duty.
Charge at a tillGrade 1 or higher, on duty.
Management panelGrade 2 or higher, or a boss grade.
Set shelf pricesGrade 3, or a boss grade. Prices stay inside the limits set by staff in the editor.
Wholesale purchasesA job listed in trade.wholesale with at least its grade. Being on duty is not required.
ShoppingEverybody.

The job name, the grades and the duty rule are in store of shared/config.lua and in each supermarket of data/stores.lua.

Keys ​

KeyWhat it does
ESign the delivery note at a wholesale market and close the end-of-run summary.
GDrop what you carry. With an empty shopping basket, drop the basket.
F6Choose the delivery destination.
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