Need help with Blips [Scripting]
-
I am currently trying to create a .lua script that requires quiet a lot of blips (over 30 in total). Problem is, that other important blips (like mission markers) disappear while they're active. I've had a lot of ideas how fix this problem but not one of them has worked so far. So now I figured the easiest way to deal with this, would be to make the blips able to be toggled. But same story here: many ideas but NONE has even remotely worked.
So I'm all out of ideas by now, but I need a solution because the whole concept just won't work without the blips.
Any help would be greatly appreciated.
-
@GetA-Life117 Increase the value of RADAR_BLIP in gameconfig.xml.
-
@Unknown-Modder Thanks, but I already tried that. It doesn't work.
-
@GetA-Life117 How much did you increase the value?
-
@Unknown-Modder I tried 9800 and 18000, these were values that kept popping up so I assumed that would be the way to go.
-
@GetA-Life117 WAY too high - try 3600, that is plenty.
-
@eshenk Okay, finally got around to test it. It helps to an extend, there are still blips missing, though. I also just checked on the map and all the blips created in my script are being counted twice.
This is part of the code concerning the blips:
local gasStations = {{-724, -935, 30},{-71, -1762, 30},{265, -1261, 30},{819, -1027, 30},{-2097, -320, 30},{1212, 2657, 30},{2683, 3264, 30},{-2555, 2334, 30},{180, 6603, 30},{2581, 362, 30},{1702, 6418, 30},{-1799, 803, 30},{-90, 6415, 30},{264, 2609, 30},{50, 2776, 30},{2537, 2593, 30},{1182, -330, 30},{-526, -1212, 30},{1209, -1402, 30},{2005, 3775, 30},{621, 269, 30},{-1434, -274, 30},{1687, 4929, 30},{14, -2800, 2},{-1800, -1225, 1},{-2078, 2602, 2},{-1604, 5256, 2},{3856, 4459, 2},{1333, 4269, 31},{-847, -1367, 1},{-725, -1444, 5},{-1286, -2793, 14},{1788, 3318, 41},{2140, 4820, 41}}
...
local blip = {}
...
function GUI.unload()
for i, coords in pairs(gasStations) do
UI.REMOVE_BLIP(blip[i])
end
endfunction GUI.init()
GUI.time = GAMEPLAY.GET_GAME_TIMER()
--STREAMING.REQUEST_ANIM_DICT(dict)
for i, coords in pairs(gasStations) do
blip[i] = UI.ADD_BLIP_FOR_COORD(coords[1],coords[2],coords[3])
UI.SET_BLIP_SPRITE(blip[i], 361)
UI.SET_BLIP_SCALE(blip[i], 0.8)
UI.SET_BLIP_AS_SHORT_RANGE(blip[i], true)
end
endIs there something I missed here or why are the blips counted twice?
I don't get it