Staff sanction players with four commands or from the panel. Players have no commands: they only use the interaction key next to the task.
Commands
The names are the defaults of commands in shared/config.lua.
| Command | Who | What it does |
|---|---|---|
/sanciones | Staff | Opens the sanctions panel. |
/comserv <id> <tasks> <reason> | Staff | Gives community service tasks to the player with that server id. |
/endcomserv <id> | Staff | Removes the community service of that player and moves them to the exit point. |
/jaila <id> <minutes> <reason> | Staff | Sends the player to administrative jail for that many minutes. |
/endjail <id> | Staff | Releases that player from jail and moves them to the jail exit point. |
/taskcoords | Staff | Turns the task mapping tool on or off. |
<id> is the server id of a connected player. <tasks> goes up to comserv.maxTasks and <minutes> up to jail.maxMinutes; decimals are rounded down. The reason can be several words, up to admin.reasonMax characters.
/comserv, /endcomserv, /jaila and /endjail also work from the server console.
Rules
- A character holds one sanction at a time from commands and the panel.
/comservand/jailaare refused while the player has community service or jail active. /endcomservand/endjailonly act on a player who has that sanction.- The staff member and the player are notified of every sanction given or removed.
- With Cuxial Chat running, sanctions given and served are announced in its sanctions channel.
Sanctions panel
/sanciones opens a panel with two tabs, community service and jail. Each tab lists every character with an active sanction of that type, online or not.
| Action | What it does |
|---|---|
| Search | Filters by name or citizen id. |
| Select a record | Shows progress, served, left, total, reason, date and who gave the sanction. |
| Remove sanction | Asks for confirmation and removes it. An online player is released at once; an offline one finds it gone on their next login. |
| Apply | Picks an online player (search by name, id or citizen id), the type, the tasks or minutes and the reason. |
| Refresh | Reloads the list. |
Esc closes the open dialog, then the panel. Every panel request is checked again on the server, so a player without permission cannot read or change anything.
What the sanctioned player sees
| Sanction | On screen |
|---|---|
| Community service | Tasks left, current task, distance to it and the reason. Blip with route, outlined object and a marker above it. |
| Jail | Time left and the reason. |
Keys
| Key | Where | What it does |
|---|---|---|
| E | Next to the task object, when the prompt shows | Starts the task. The key is comserv.interactKey. |
| E | Task mapping tool | Copies the aimed object, or the ground position when no object is aimed at. |
| G | Task mapping tool, aiming at an object | Copies a full task entry. |
| X | Task mapping tool | Closes the tool. |
The progress bar of a task cannot be cancelled. The player cannot move, sprint, fight or use a vehicle while it runs.
Task mapping tool
/taskcoords helps you write tasks without typing coordinates by hand. While it is on, a line goes from your character to the point you aim at, up to 50 metres away. Objects are outlined, and their model and position are shown on screen.
| You press | Copied to the clipboard |
|---|---|
| E on an object | object = { model = ..., coords = vec3(...) }, |
| E on the ground | coords = vec3(...), |
| G on an object | A full task entry with coords, name, object and progress, ready to paste into a category of zones in data/tasks.lua. |
After pasting a full entry, change name and progress.label to your own keys, add them to the locales, and adjust duration and anim. The fields are explained in Configuration.
Permissions
The commands and the panel pass two checks:
| Check | Requirement |
|---|---|
| Command access | The player belongs to the ACE group in restricted of the command (group.mod by default), directly or by inheritance. |
| Bridge permission | The player holds the permission in admin.permission (mod by default). On ESX this is the player's group. |
# Moderators hold the "mod" permission
add_ace group.mod mod allow
# Admins inherit everything moderators can do
add_principal group.admin group.mod
# One line per staff member
add_principal identifier.license:xxxxxxxxxxxxxxxx group.mod