This script provides a law enforcement blip system for your FiveM server. It allows law enforcement officers to have blips displayed on the map based on their department and vehicle status.
- Automatic blip updates for law enforcement officers based on their department and vehicle status.
- Toggleable blips using the
/blip onand/blip offchat commands. - Customizable blip settings, including color, scale, and blip category.
- Supports displaying blips for various law enforcement departments and vehicle classes.
- Live Siren Alerts with the blip flashing from red and blue if Siren is on.
The script provides a Config table in the Lua script file (blip_system.lua). The configuration includes the following options:
enable_blips: Enable or disable the blip system. If disabled, players won't receive blips regardless of the/blipcommand.UseCharName: If set totrue, blips will display the character's first and last name. Iffalse, it will use the FiveM/Steam name.disable_show_officer_on_foot: If set totrue, blips will only be shown when the officer is in a vehicle.autoenable_blips: If set totrue, blips will automatically be enabled for law enforcement officers every 15 seconds.departments: A table that defines law enforcement departments and their corresponding blip colors.
The script allows you to customize various blip settings:
blipcone: Display a cone on the blip to indicate the direction the player is facing.HeadingIndicator: Show a heading indicator on the blip.blipscale: The scale of the blips on the map.leofootblip: Blip sprite ID for law enforcement officers on foot.helicopterblip: Blip sprite ID for helicopters.boatblip: Blip sprite ID for boats.motorcycleblip: Blip sprite ID for motorcycles.planeblip: Blip sprite ID for planes.vehicleblip: Blip sprite ID for other vehicles.blipcategory: Blip category ID for the blips.
- Download|Install[ND_Core](https://github.com/ND-Framework/ND_Core
- Download|Install [ND_Characters](https://github.com/ND-Framework/ND_Characters
/blip on: Enable blips for law enforcement officers./blip off: Disable blips for law enforcement officers.
- Make sure to configure the
Config.departmentstable to match your server's law enforcement departments and their corresponding blip colors. - The blip system supports automatic blip updates every 15 seconds (if
autoenable_blipsistrue), and manual toggling using the/blipchat command.
For more information about the blip settings and how to use this script, refer to the script comments and documentation provided in the Lua script file (client.lua | config.lua).