This is a comprehensive police system for RedM using the VORP framework. It integrates various police-related functionalities, such as an on-duty system, shared/private storages, job management, and more. The script is designed for small to large servers and offers customization options to suit different server needs.
- Download or clone the repository to your server's resources folder.
- Add
ensure vorp_police
to yourserver.cfg
file to ensure the script is loaded when the server starts. - Make sure the required dependencies are installed and properly configured.
- Supports shared and private storages for police officers.
- Configurable item limits, allowing for a flexible inventory management system within the police force.
- Utilize statebags to track whether players are on or off duty.
- Set up teleport points for fast travel between different police stations or key locations.
- Useful for both small and large servers, allowing for quick responses and movement across the map.
- Hire and fire players via the boss menu, offering easy job management for police chiefs or higher-ranking officers.
- Simple and intuitive menu with all the necessary functionalities for managing the police force.
- Drag nearby players using a drag player feature, adding realism and functionality during arrests or detainment scenarios.
- Cuffs as items: Police officers can use cuffs to detain suspects, and keys to release them.
- Realistic mechanics for handcuffing and uncuffing, with item-based restrictions.
- Persistent jail time: Jail time lasts even after server relogs.
- Teleportation to Sisika: Players are automatically teleported to Sisika when jailed.
- Jail commands: With the correct permissions can jail, unjail, and adjust jail time.
- Jail time checks: Players can check how much jail time is left via command.
- Respawn/Dead/Escape Protection: Players cannot respawn when inside Sisika through respawn prompt. They will automatically respawn when they die.
This script requires the following VORP resources to function properly:
- VORP Core: Provides essential functions and event handlers used throughout the script.
- VORP Inventory: Manages the item-based inventory system, including cuffs and keys.
- VORP Menu: Powers the interactive menu system, used for the boss menu, hire/fire system, and teleportation points.
- PolyZone: download polyzone
Ensure you have these resources installed and correctly set up for the vorp_police
script to work seamlessly.
- Storage: Officers can access shared or private storage depending on configuration.
- On-Duty: Use commands or menu options to go on or off duty.
- Teleport: Teleports can be configured for quick travel between key locations.
- Boss Menu: Manage the police force by hiring and firing players directly through the boss menu.
- Drag Players: When in close proximity, drag players as part of arrest procedures.
- Cuffs: Officers can use cuffs and keys, which must be present in their inventory to handcuff or uncuff players.
- /drag: Drag/escort a nearby player.
- /policeMenu: Open the police menu to go on duty or access other functionalities.
- /callpolice: Call for police assistance.
- /cancelPoliceAlert: Cancel a police alert.
- /finishPoliceAlert: Finish a police alert.
- /jail: Jail a player. Usage:
/jail <player id> <time in minutes>
. - /unjail: Unjail a player. Usage:
/unjail <player id>
. - /changejailtime: Change jail time. Usage:
/changejailtime <player id> <time in minutes>
. To reduce time, use negative numbers (e.g.,-10
will reduce 10 minutes). - /checkjailtime: Check jail time for jailed players to see how long they have left.
You can configure the script to suit your server's needs. The following settings can be adjusted in the configuration file:
- Storage Settings: Define limits for shared or private storage, and enable/disable features like weapon storage.
- Duty Settings: Customize the duty system, including state management.
- Job Labels: Add or modify police job labels for hire/fire functionality.
- Teleport Locations: Set up teleport points for police stations or other important areas on the map.
For support or further information, please ask in the Vorp Core Discord. Updates will be released periodically to improve functionality or compatibility with the latest VORP framework versions.