function GetAllBlipsWithSprite(blip_sprite)
local current_blip = GetFirstBlipInfoId(blip_sprite)
local blips_array = {}
if not DoesBlipExist(current_blip) then
print('there are no blips with this sprite set')
return blips_array
end
while DoesBlipExist(current_blip) do
table.insert(blips_array, current_blip)
current_blip = GetNextBlipInfoId(blip_sprite)
end
return blips_array
end