📦Installation

  1. Download the Resource

    • Download the gunchi-commserv resource package

    • Extract the files to your server's resources directory

  2. File Structure

    • Verify the resource contains the following files:

      • fxmanifest.lua

      • config.lua

      • client.lua

      • server.lua

      • menus.lua

  3. Add to Server Configuration

    • Open your server.cfg file or resources.cfg file

    • Add the following line to ensure the resource starts:

      ensure gunchi-commserv

  4. Configure the Script

    • Open config.lua and customize the settings to your preference:

      • Adjust community service locations and their coordinates

      • Configure reputation scaling and progression

      • Set bribe costs and penalties

      • Customize task props and models

      • Configure staff permissions

  5. Verify Dependencies

    • Ensure the core export is accessible: exports.core:getCoreObject()

    • Verify the radialmenu resource is running

  6. Test the Installation

    • Join your server as a police officer

    • Use the radial menu under the police section

    • Test assigning community service to a player

    • Verify zones, props, and tasks spawn correctly

Permission Configuration

Grant the appropriate permission level in your permissions system:

  • Default: Police officers can assign community service

  • Staff permission (configurable in config.lua) allows admin override via commands

Commands

The following commands are available after installation:

  • /commserv [id] [tasks] [location] - Assign community service (Police/Staff)

  • /releasecs [id] - Release player from community service (Police/Staff)

  • /cscheck - Check your own community service status (All players)

Last updated