Northline Solutions
product image

FiveM - Standalone Comserv script

$10.00

NL-Comserv - Community Service Script

🎯 Overview

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

✨ Features

  • Commands: /comserv [id] [amount] [reason], /endcomserv [id], /addcomms [id] [amount] [reason], /changecomms [id] [amount] [reason].
  • Tasks: Random cleaning spots (broom prop + animation, 10s each).
  • Anti-Cheat: Teleport back if escape (>50 units), disable vehicles/weapons/friendly fire.
  • UI: On-screen actions left, sender, reason + Tebex promo.
  • Persistence: MySQL tracking by license identifier.
  • Logging: Discord webhooks for assignments/changes.
  • Auto-Resume: On player spawn/respawn.
  • Release: To configurable coords after completion.
  • Limits: Max 100 actions per assignment.
  • Notifications: Supports mxo-notify (configurable).

πŸ“¦ Installation & Setup

  1. Download oxmysql:

    • Add oxmysql to resources/ and ensure oxmysql in server.cfg (before this resource).
  2. Import Database:

    - Open HeidiSQL/phpMyAdmin (connect to your DB).
    - Run `communityservice.sql` (creates `communityservice` table).
    
  3. 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`.
    
  4. 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
    
  5. Test:

    • Join as staff, /comserv [yourid] 5 Test.
    • Verify teleport to boat, tasks, DB entry.

βš™οΈ Configuration

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.

πŸ“‹ Commands

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.

🌊 Locations

  • Service Zone: Boat island (~3056.79, -4685.35, 15.26). 8 cleaning spots.
  • Release: ClientConfig.releaseCoords (default 2047.1377, 3447.9441, 43.8631).

πŸ—„οΈ Database

Table: communityservice
Fields: id, identifier (license), actions_remaining, sender_name, comserv_reason.

πŸ”§ Troubleshooting

  • 'Permission denied': Restart server after ACE, check perms.
  • No teleport/DB: Ensure oxmysql running, DB imported.
  • No notifications: Check NotificationType.
  • Errors: Check F8/console, ensure Lua54.

πŸ’¬ Support

  • Discord: discord
  • Issues: Create ticket or check docs.

Enjoy clean servers! 🧹

Credits

percz.dev Coding Script



Community Reviews

See what others have to say about our services!




Gallery




Northline Solutions

Welcome to Northline Solutions! Founded in March 2023, We are excited to bring some basic but yet unique FiveM scripts, And discord bots! What do we offer? I am currently making 100% standalone assets/scripts so all servers can enjoy! We currently have ⁠PerkoReports, Comserv, Sec Cams and have more releases coming out soon! What can you expect? We will constantly push updates to our scripts (even without suggestions) and have some exciting ideas planned for the future! Hope you're ready to tag along!

Copyright © 2026 Northline Solutions - All rights reserved.

Useful Links

Gift Cards

Our Discord

FAQs