[HELP] how do I add blips to my fiveM Map/the gta v map

i need some help is this correct

local blips = {
{title=“Meth”, colour=1, id=499, x=1389.76, y=3608.71, z=19.7},
{title=“cocaine”, colour=1, id=501, x=2438.61, y=4976.42, z=46.81}
{title=“opium”, colour=1, id=403, x=2433.69, y=4969.15, z=42.35},

 {title="Meth Sales", colour=3, id=499, x=7.4, y=6470.15, z=34.26},
 {title="Cocaine Sales", colour=3, id=501, x=1871.98, y=3751.03, z=32.99}
 {title="Opium Sales", colour=3, id=403, x=3155.54, y=1125.78, z=20.86},

 {title="Fight Club", colour=72, id=311, x=915.85, y=-1812.24, z=24.97},

}
Citizen.CreateThread(function()

for _, info in pairs(blips) do
  info.blip = AddBlipForCoord(info.x, info.y, info.z)
  SetBlipSprite(info.blip, info.id)
  SetBlipDisplay(info.blip, 4)
  SetBlipScale(info.blip, 0.9)
  SetBlipColour(info.blip, info.colour)
  SetBlipAsShortRange(info.blip, true)
  BeginTextCommandSetBlipName("STRING")
  AddTextComponentString(info.title)
  EndTextCommandSetBlipName(info.blip)
end

end)

1 Like

is there a limit of blips or something cuz its not working for me now for some reason?

1 Like

thanks very much very helpful

Thanks for sharing Friend! your awsome!

Thank you, really hate it when I try to use google and stumble across threads that say to just use google. That’s what I’m doing!! We just need an answer.

Thanks!

2 Likes

^Thanks dude

how to add those blips in single row
for example if i am adding 6 garages they should come in single row
and not differently on map

Create them in loop

can you help me with that

    async(function() -- blips
        if self.displayBlips then
            for k,v in pairs(self.cfg) do
                    local blip = AddBlipForCoord(v[1], v[2], v[3])
                    SetBlipSprite(blip, v[4])
                    SetBlipDisplay(blip, 6)
                    SetBlipScale(blip, 1.0)
                    SetBlipColour(blip, v[5])
                    SetBlipAsShortRange(blip, true)
                    BeginTextCommandSetBlipName("STRING")
                    AddTextComponentString(v[6])
                    EndTextCommandSetBlipName(blip)
            end
        end
    end)
end

and heres my self.cfg example

[6] = { -1193.42956542969, -772.262329101563, 17.3244285583496, 73, 5, "Магазин одежды"},
type or paste code here
3 Likes

how can i delete all the blips on the map? i wanted to get rid of the locations that has nothing on it and wanted to create a new one. like a fresh map

hello why the names of the legend disappear help please :confused:

1 Like

Did you put the blips or the blips are from the scripts?

Try SetcurrentBlipDisplay”

wow thanks.

Thanks mahn

Installed it, it does not work

same for me :frowning:

Can you add different blips though from imported png files?

I have the same problem, have you fixed this?