Pd Count [Free]

:rotating_light: PD Count & Robbery Control System — Balance Risk and Reward Based on Police Presence!

:shield: Key Features:

:police_car: Dynamic PD Count Check
Automatically tracks how many police officers are online and enables or disables robberies based on configurable thresholds.

:house: Supports Multiple Robbery Types:
Easily control access to a variety of heist scenarios:

  • House Robberies
  • Garage Robberies
  • Bank Heists
  • ATM Robberies
  • Grave Robberies
  • Locator-enabled Events
  • And many more…

:keyboard: Command-Based Configuration
Toggle, test, or trigger features directly through in-game commands — no need to mess with backend files during live gameplay.

:lock: Built-in Security Logic
Prevents unauthorized access to robbery actions when not enough police are on duty — great for immersion and economy control.

:gear: Fully Configurable
Easily adjust settings such as minimum police required per robbery type, cooldowns, notifications, and more — all in the config.

:handshake: ESX Support Ready
Designed for seamless integration with ESX-based servers.

:rocket: Perfect for serious RP servers that want to control illegal activity with realistic conditions — bring balance, fairness, and tension to your city!

Link:

PitrsScripts/Pd-Count

2 Likes

Hi, I’m writing this to you in a constructive manner, I don’t mean any harm, but I would like to help. It’s great that you’re requesting it from the server side and using the callback function, but you haven’t restricted the use of the command, so anyone who wants to can spam it, which is a problem because you’re opening xplayer on the server side and running a loop every time. With a large number of players, when many people do this, it’s not the best thing. You should have solved this by catching the connection and the setjob with a handler, and when there is a change, cache it locally on the server side and return the cache value, so that when the command is called, it doesn’t load the server. Regardless, you can also limit the command. Otherwise, the idea isn’t bad, and you wrote the code nicely. Good luck!

Hi, I’ll take a look at it this afternoon or evening and add the restrictions there, thanks for the reminder. :wink:

1 Like

Fixed

Not quite as I described it, but it’s a step up.