Cuxial Community Service creates its own database table and needs no inventory items. The only convar is the Discord webhook, and it is optional.
Check the dependencies
These must be installed and working before you add the script:
ox_liboxmysqlcuxial_bridge, running on QBox, QBCore or ESX- OneSync enabled on the server
One integration is optional and detected on its own:
cuxial_chat: sanctions given and served are announced in its sanctions channel. Without it there is no chat announcement; notifications to staff and to the player work the same.
Copy the resource
Place the cuxial_cmservices folder inside your resources directory.
Keep the folder name cuxial_cmservices. Other resources call its exports by that name.
If you are updating from an earlier version, delete the old folder and copy the new one whole. Keep a copy of your old config to carry your values over.
Database
There is nothing to import. On start the resource creates the cuxial_cmservices table and adds any column that is missing.
Start the resource. The table is created on its own. install/cuxial_cmservices.sql is included only as a reference of its structure.
If your old records are in a table with another name, rename it to cuxial_cmservices before the first start so the migration picks it up.
Give your staff the permission
The commands are restricted to the ACE group set in commands (group.mod by default), and the server also checks the bridge permission set in admin.permission (mod by default).
# 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.modSet the Discord webhook (optional)
Sanctions given, removed and served are logged to Discord. The URL goes in a server convar, never in the config:
set cuxial_cmservices_webhook "https://your-webhook-url"Use set, not setr. With setr the URL is also sent to every client.
The convar is read when the resource starts. If you add or change it later, restart cuxial_cmservices. Without the convar nothing is logged and everything else works the same.
Adjust the zones
Open data/tasks.lua and data/jail.lua to review the community service zone, the tasks and the cells, and shared/config.lua for the exit points. The values delivered are an example location.
Every option is explained in Configuration.
Start the resource
Start it after its dependencies and after your framework:
ensure ox_lib
ensure oxmysql
# your framework here
ensure cuxial_bridge
# optional
ensure cuxial_chat
ensure cuxial_cmservicesCheck that it works
- Join with a staff account and run
/sanciones. The panel opens. - Run
/comservwith your own id,2tasks and a reason. You are moved to the zone and the first task appears on the map. - Walk up to the task object until the E prompt appears, and press it. The progress bar runs and the counter drops.
- Finish the second task. You are moved to the exit point.
- Run
/jailawith your own id,1minute and a reason. You are moved to a cell and released a minute later.
Next: move the zones and write your own tasks in Configuration.
