Police Blips
Hey guys! I decided to release another script I’d written. The script shows blips of all police units (for colleagues). You can easily automate it with your ESX police job. Blips are customizable as for colors and possible pre-fixes. I’ve also included a script to check the nearest vehicle’s window tint (I will maybe continue on expanding this script with similar features). Please let me know if there are any problems and feel free to create pull requests
Since I’m getting a lot of questions about it, the script is standalone, but you’ll have to add players to the radar manually using these server events if you don’t use the built in ESX functionality. If you use ESX, you just fill in the police job name in the config!
The blip above was set using callsign L-21
Installation
Drop the folder policetools
into your resources folder and start it using the console / add it to the server configuration.
console
refresh
followed by start policetools
server.cfg
start policetools
Please note that the latest artifacts may cause issues with the RegisterKeyMapping native, resulting in the script not working properly or at all.
Usage & Commands
/callsign <callsign>
- Sets the callsign to the specified one, will change your blip’s appearance on the map. (e.g. L-11 → blue dot with 11 in it)
-
<callsign>
: string - your callsign, formatted: e.g. L-21, C-3
/policeblip <action> <playerID>
Admin tool to manually add / remove / hide / show a player on the map, turn the blips on / off.
-
<action>
: add / remove / hide / show / on / off - specifies the action (on and off turns the blips globally on/off) -
<playerID>
: int - the player ID (leave empty if you want to apply the action on yourself)
/tint
- Checks the nearest vehicle’s window tint.
You can find the blip colour codes which you need to use in config here.
Compatibility
OneSync is required to make this script work as it obtains player coordinates server-side.
Known bugs
None Feel free to submit an issue on GitHub if you find any.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Credits
Mickey#2590, @modz_mcfarlane, @Gamerbiggie for testing the script and good suggestions.
Thanks!
License
Download link
GitHub
Like the script? Don’t forget to