hsBlipManager
is a FiveM script that allows players to create, view, manage, and share custom blips on the map. The blips are client-side only, meaning they are private and not visible to other players unless shared. This script is compatible with both ESX and QBCore frameworks and uses ox_lib
for UI and notifications.
- Create custom blips at the player's current location.
- View and manage created blips.
- Share blips with nearby players.
- Persistent blips across server restarts.
- Restriction system for using abusive words in blip names.
- Configurable settings for blip appearance and restrictions.
Tebex Store - Get Now
-
Download and Extract:
- Download the script and extract it to your FiveM resources directory.
-
Add to Server Configuration:
- Add
ensure hsBlipManager
to yourserver.cfg
file.
- Add
-
Dependencies:
- Ensure you have
ox_lib
installed. Follow the installation instructions from the ox_lib documentation.
- Ensure you have
Open the config.lua
file to configure the script according to your server's needs.
Config = {}
-- Framework settings: 'esx' or 'qbcore'
Config.Framework = 'esx'
-- Blip defaults
Config.BlipDefaults = {
sprite = 1,
color = 1,
scale = 1.0,
name = 'Custom Blip'
}
-- Abusive words filter
Config.AbusiveWordsFilter = {
Enabled = true,
Words = { "badword1", "badword2", "badword3" },
MaxAttempts = 2,
TimeoutDuration = 300 -- in seconds
}
-- Sharing radius
Config.SharingRadius = 50.0 -- in meters
-- Debug mode
Config.Debug = false
-- Notifications
Config.Notifications = {
BlipAdded = "Blip has been added successfully.",
BlipDeleted = "Blip has been deleted successfully.",
BlipTransferred = "Blip has been transferred successfully.",
BlipReceived = "You have received a new blip.",
InvalidBlipName = "Blip name contains abusive words.",
MenuAccessRestricted = "You are restricted from accessing the menu."
}
- Open Blip Menu:
/blipmenu
-
Mark on Map:
- Allows players to create a blip at their current location.
- Prompts the player to enter a name for the blip.
-
See Markers:
- Displays a list of all created blips.
- Players can view and delete their blips from this menu.
-
Transfer Marker:
- Displays a list of nearby players.
- Players can share their blips with other players within the specified radius.
The script uses ox_lib
for notifications. Customize the notification texts in the config.lua
file.
If a player uses abusive words in the blip name, they will receive a warning. After exceeding the maximum allowed attempts, they will be restricted from using the blip menu for a specified duration. The restriction duration is configurable in the config.lua
file.
- Ensure
ox_lib
is properly installed and configured. - Check the server console for any error messages and refer to the
logError
function for debugging. - Ensure the configuration settings in
config.lua
are correctly set up according to your framework and preferences.
Feel free to contribute to the project by submitting issues or pull requests on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for more details.