UnG//Macaus Posted October 17, 2014 Share Posted October 17, 2014 I use this script to hide blips F11, I do not know if this is the best way to do this but the problem is that wisdom works for all blips. How can I add a table for me to choose the blips that will disappear? addEventHandler("onClientResourceStart", getRootElement(), function() setTimer(function() local localX, localY = getElementPosition(localPlayer) for _, blip in pairs(getElementsByType("blip")) do local blipX, blipY = getElementPosition(blip) if(getDistanceBetweenPoints2D(localX, localY, blipX, blipY) > 500) then local icon = getElementData(blip, "IconID") if not icon then setElementData(blip, "IconID", getBlipIcon(blip), false) end setBlipIcon(blip, 0) setBlipColor(blip, 255, 255, 255, 0) else local icon = getElementData(blip, "IconID") if icon then setBlipIcon(blip, icon) end end end end, 500, 0) end) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now