This is a straightforward yet powerful script that enhances your map by adding informative overlays to blips. Now, players can see extra details in a convenient top-left info box whenever they hover or click on a blip.
Interactive overlays: Display titles, descriptions, or even dynamic data with blip hover or click.
Automatic cleanup: Blips are automatically removed when the parent resource stops.
Easy integration: Use exports to quickly integrate with other scripts.
Blip categories: Assign blips to categories to group them together. (Max 2 unique categories, as per limit of GTA 5)
Examples
-- Example blip with default properties
exports.gs_blips:CreateBlip({
coords = vector3(436.28, -993.07, 43.69),
sprite = 60,
scale = 1.3,
color = 38,
label = 'Police Station',
data = {
title = '👮🏽 Police Station',
description = 'Mission Row Police Station is a key center for city police operations, equipped with holding cells, offices, and an impound lot.',
},
})
-- Example blip with display handler
local blip = exports.gs_blips:CreateBlip({
coords = vector3(189.69, -937.84, 30.69),
sprite = 306,
scale = 1.5,
color = 5,
label = 'Example blip',
data = {
title = 'Example blip',
description = '',
},
})
-- Example: Sets a random number each time the info box is opened
blip.setDisplayHandler(function()
blip.setDescription('Random number: ' .. math.random(1, 100))
end)
This could have all been done in one script, I find it very cumbersome to use two scripts for this, why not do everything in one script! Above all, how should you insert it into Escrow encrypted script? The idea is good, but it wasn’t really thought through!
Hey you beautiful person !! Stop right there !! Hehe
Umm I’m having a big issue with my own blips ( nothing to do with yours )
But if there is more than 99 blips in the drop down display it breaks. And atm my cap is at 70 and I don’t know why. Do you know anything about this. Also I seen in a server where two different blips were in the same category but had different names.
I’ll be super keen to use your resource. But I mean my server has over 100 different kinds pretty much every where ( most of my blips pop in and out depending on distance )
I’ve updated the script to allow adding blips to categories. (Max 2, because of the limit in GTA 5, afaik).
Example:
CreateThread(function()
for i = 1, 10 do
exports.gs_blips:CreateBlip({
coords = vector3(i * 50, i * 50, i * 50),
sprite = 1,
scale = 1.0,
color = 0,
label = 'Example blip: #' .. i,
category = 'Example category',
data = {
title = 'Example blip',
description = 'This blip is grouped under the "Example category" category.',
},
})
end
end)
This way, blips with different names, will still display under the same category: