๐ฎ 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
- Make sure you have
npm
installed on your machine. - Go to the
web/src/components/App.tsx
file and locate theconst departments
variable. Follow the existing format to add more departments. - Install the necessary dependencies using
npm
by running the commandnpm i
in theweb
folder. - Build the application by running
npm run build
. - Navigate to the
server/server.lua
folder and find theif department == "lspd" then ...
line. - To add more departments, use simple
if
statements. - After making changes, remember to build the application and delete the
node_modules
folder. - Finally, upload the script to your server.