๐Ÿš” Police Complaint
Adding Departments

๐Ÿ‘ฎ Adding more police departments

โ„น๏ธ

We recommend configuring the resource on your computer and then uploading it to your server. This will save you a lot of time.

Prerequisites

  • Node.js and npm on your computer

Configuration

  1. Make sure you have npm installed on your machine.
  2. Go to the web/src/components/App.tsx file and locate the const departments variable. Follow the existing format to add more departments.
  3. Install the necessary dependencies using npm by running the command npm i in the web folder.
  4. Build the application by running npm run build.
  5. Navigate to the server/server.lua folder and find the if department == "lspd" then ... line.
  6. To add more departments, use simple if statements.
  7. After making changes, remember to build the application and delete the node_modules folder.
  8. Finally, upload the script to your server.