How can i disable a blip?

Hello, i search to disable a blip for a illegal weapon shop
I know its on this function but when i remove it the script doesn’t work because other functon need this function :smiley: thx

function ShowWeapshopBlips(bool)
	if bool and #weapshop_blips == 0 then
		for station,pos in pairs(weapshop_locations) do
			local loc = pos
			pos = pos.entering
			local blip = AddBlipForCoord(pos[1],pos[2],pos[3])
			-- 60 58 137
			SetBlipSprite(blip,110)
			BeginTextCommandSetBlipName("STRING")
			AddTextComponentString('Ammunation')
			EndTextCommandSetBlipName(blip)
			SetBlipAsShortRange(blip,true)
			SetBlipAsMissionCreatorBlip(blip,true)
			table.insert(weapshop_blips, {blip = blip, pos = loc})
		end

Hello, add RemoveBlip(blip) after table.insert…

table.insert(weapshop_blips, {blip = blip, pos = loc} RemoveBlip(blip) end

2 Likes

thanks for help dude :smiley:

1 Like