NL-Comserv is a standalone FiveM resource for enforcing RolePlay through community service. Staff can assign players cleaning tasks on a remote boat island. Persistent across restarts via MySQL. Includes webhooks, notifications, anti-exploit.
Author: Northline Solutions
Version: 2.0.0
Framework: Standalone (Works on all frameworks)
Dependencies: oxmysql
/comserv [id] [amount] [reason], /endcomserv [id], /addcomms [id] [amount] [reason], /changecomms [id] [amount] [reason].Download oxmysql:
resources/ and ensure oxmysql in server.cfg (before this resource).Import Database:
- Open HeidiSQL/phpMyAdmin (connect to your DB).
- Run `communityservice.sql` (creates `communityservice` table).
Install Resource:
- Copy folder to `resources/[NL-Solutions]/NL-Comserv`.
- Add `ensure NL-Comserv` to `server.cfg` (after oxmysql).
- Restart server or `refresh` + `start NL-Comserv`.
Permissions (server.cfg):
add_ace group.admin pdcomserv allow # All perms
# Or separate:
add_ace group.admin pdcomserv.comserv allow
add_ace group.admin pdcomserv.endcomserv allow
add_ace group.admin pdcomserv.addcomms allow
add_ace group.admin pdcomserv.changecomms allow
Test:
/comserv [yourid] 5 Test.Edit ClientConfig.lua / ServerConfig.lua.
ClientConfig.lua:
ClientConfig.DrawText = { ... } -- UI text/color
ClientConfig.TextCoordinates... -- Positions
ClientConfig.releaseCoords = vector3(...) -- Release location
ServerConfig.lua:
ServerConfig.Permission = { Comserv = 'pdcomserv' } -- ACE perms
ServerConfig.Webhook = { Comserv = 'your_url' } -- 4 webhooks
ServerConfig.ComservMaxAmount = 100
ServerConfig.NotificationType = 'mxo-notify:alert' -- Change if needed
ServerConfig.NotificationTemplate = '...' -- Chat HTML
ServerConfig.Commands = { Comserv = 'comserv' } -- Custom commands
Escrow Ignore: Configs/SQL editable.
| Command | Usage | Description | Perm |
|---|---|---|---|
/comserv |
/comserv [id] [amount] [reason] |
Assign service (1-100) | pdcomserv |
/endcomserv |
/endcomserv [id] |
End immediately | pdcomserv |
/addcomms |
/addcomms [id] [amount] [reason] |
Add actions | pdcomserv |
/changecomms |
/changecomms [id] [newamount] [reason] |
Set exact amount | pdcomserv |
Broadcast: Server chat + webhook on actions.
ClientConfig.releaseCoords (default 2047.1377, 3447.9441, 43.8631).Table: communityservice
Fields: id, identifier (license), actions_remaining, sender_name, comserv_reason.
NotificationType.Enjoy clean servers! π§Ή
percz.dev Coding Script
See what others have to say about our services!