
ESX Police Buttons is a free, lightweight script that brings essential emergency communication features to your FiveM police department. This script adds dedicated panic and position alert buttons, allowing law enforcement officers to quickly signal distress or share their location with teammates during critical situations.
Whether you’re running a serious roleplay server or a casual police RP community, having reliable emergency communication can make the difference between coordinated response and chaos. This script integrates seamlessly with ESX frameworks and requires minimal server resources, making it perfect for servers of all sizes.
This script provides two primary functions that every police officer needs: the ability to send a panic alert when in danger, and the ability to broadcast their current position to all online officers. Both features use simple keybinds (Page UP and Page DOWN) that don’t interfere with other common FiveM controls.
esx_policebuttons or your preferred nameresources/[esx]/ directoryserver.cfg file and add: ensure esx_policebuttonsrefresh and start esx_policebuttons commandsThe script comes with a config.lua file where you can customize settings:
Solution: Make sure you’re playing as a character with a police job. Check your config.lua to ensure your job name (e.g., ‘police’, ‘sheriff’) is listed in the allowed jobs table. Also verify that the script started correctly by checking your server console for errors.
Solution: This is typically a server-side synchronization issue. Make sure all players are properly loaded into the server and that the script is running on the server (not client-only). Check that there are actually other police officers online to receive the alerts.
Solution: Page UP and Page DOWN are rarely used by other scripts, but if you have a conflict, you can easily change the keybinds in the script’s client file. Look for the key codes and replace them with your preferred keys (reference FiveM key codes documentation).
Solution: Open the config.lua file and change the Config.Locale setting to either ‘en’ for English or ‘de’ for German. Save the file and restart the script.
A: This specific version is designed for ESX only. However, the concept can be adapted for QBCore with some code modifications to use QBCore’s job system and notification functions.
A: Absolutely! The code is open and easy to modify. You could add buttons for code responses (10-4, 10-20), request medical assistance, or signal end of shift. Just follow the existing code structure.
A: No, this script is extremely lightweight. It only runs when buttons are pressed and uses minimal resources. Expect 0.00-0.01ms on resmon, which is negligible even on busy servers.
A: No, the alerts are sent only to players with police jobs as defined in your config file. This maintains roleplay realism and prevents metagaming.
A: The base version sends coordinates via notification. Some enhanced versions include automatic GPS waypoint setting, but you may need to add this functionality or look for updated versions that include it.
A: Yes, you can add custom sounds by modifying the client file to include PlaySoundFrontend or xSound calls when alerts are triggered. This requires basic Lua knowledge.
A: Yes, this script works with all modern ESX versions including v1-final, ESX Legacy, and older 1.9.x versions. The core ESX functions it uses are standard across versions.
Get started with enhancing your police roleplay experience by downloading the ESX Police Buttons mod today!