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
| Command | Who | What it does |
|---|---|---|
/supplyreset | Crew owner | Cancels the run in progress. The van is removed and nobody is paid. |
/supplyleave | Crew members | Leaves the crew. The owner cannot leave while a run is in progress: reset it first. |
Staff commands
| Command | Who | What it does |
|---|---|---|
/supplyadmin [market] | ACE group | Opens the staff panel: market view and editor. market is the id of an active wholesale market (ls, sandy, paleto). |
/supplylist | ACE group | Lists the crews: number, members, line and phase. Also works from the server console. |
/supplyclose <crew> | ACE group | Closes the crew with that number and cancels its run. Written to the audit table and the Discord log. |
/supplyfast [count] | ACE group, debug only | Completes tasks of your own run in progress. Does nothing unless debug is on. |
/supplyrestock [store] [fill] | Supply staff | Fills the shelves and the stockroom of a supermarket to fill percent (100 by default). Also works from the server console. |
/supplyslots [store|off] | Supply staff | Draws the shelf slots of a supermarket, with their size, facing and interaction points. off hides them. |
/supplyyaw [degrees|flip|reset|list] | Supply staff | Looking 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 staff | Tests 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 staff | Till 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,/supplycloseand/supplyfastare restricted to the group incommands.<id>.restricted,group.adminby default. - Supply staff. The actions inside the staff panel and the commands
/supplyrestock,/supplyslots,/supplyyaw,/supplyfridgeand/supplytillrequire the framework permission inadmin.permission('admin'by default), checked through Cuxial Bridge. With'admin', players in the groupsadminandsuperadminare staff. Inside the panel, holding the ACE permission of/supplyadminis also enough.
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
| Activity | Requirement |
|---|---|
| Supply job | The 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 supermarket | Job supermarket with grade 0 or higher, on duty. |
| Charge at a till | Grade 1 or higher, on duty. |
| Management panel | Grade 2 or higher, or a boss grade. |
| Set shelf prices | Grade 3, or a boss grade. Prices stay inside the limits set by staff in the editor. |
| Wholesale purchases | A job listed in trade.wholesale with at least its grade. Being on duty is not required. |
| Shopping | Everybody. |
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
| Key | What it does |
|---|---|
| E | Sign the delivery note at a wholesale market and close the end-of-run summary. |
| G | Drop what you carry. With an empty shopping basket, drop the basket. |
| F6 | Choose the delivery destination. |
| Y | Accept a crew invitation. |
| N | Decline a crew invitation. |
| Backspace | Hide 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.
