Skip to content

Commands & permissions

Commands, panel and keys of Cuxial Community Service, and the staff permission each one needs.

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.

CommandWhoWhat it does
/sancionesStaffOpens the sanctions panel.
/comserv <id> <tasks> <reason>StaffGives community service tasks to the player with that server id.
/endcomserv <id>StaffRemoves the community service of that player and moves them to the exit point.
/jaila <id> <minutes> <reason>StaffSends the player to administrative jail for that many minutes.
/endjail <id>StaffReleases that player from jail and moves them to the jail exit point.
/taskcoordsStaffTurns 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. /comserv and /jaila are refused while the player has community service or jail active.
  • /endcomserv and /endjail only 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.

ActionWhat it does
SearchFilters by name or citizen id.
Select a recordShows progress, served, left, total, reason, date and who gave the sanction.
Remove sanctionAsks for confirmation and removes it. An online player is released at once; an offline one finds it gone on their next login.
ApplyPicks an online player (search by name, id or citizen id), the type, the tasks or minutes and the reason.
RefreshReloads 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 ​

SanctionOn screen
Community serviceTasks left, current task, distance to it and the reason. Blip with route, outlined object and a marker above it.
JailTime left and the reason.

Keys ​

KeyWhereWhat it does
ENext to the task object, when the prompt showsStarts the task. The key is comserv.interactKey.
ETask mapping toolCopies the aimed object, or the ground position when no object is aimed at.
GTask mapping tool, aiming at an objectCopies a full task entry.
XTask mapping toolCloses 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 pressCopied to the clipboard
E on an objectobject = { model = ..., coords = vec3(...) },
E on the groundcoords = vec3(...),
G on an objectA 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:

CheckRequirement
Command accessThe player belongs to the ACE group in restricted of the command (group.mod by default), directly or by inheritance.
Bridge permissionThe player holds the permission in admin.permission (mod by default). On ESX this is the player's group.
server.cfg
cfg
# 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

© Cuxial