231 Posted July 26, 2019 Share Posted July 26, 2019 setTimer(function() for ,player in ipairs(getElementsByType("player")) do for ,blip in ipairs(getElementsByType("blip")) do if createBlipAttachedTo ( blip ) then getBlipColor ( blipValue ) else setBlipColor ( blip, 0, 0, 0, 255 ) end, 5000 ) bindKey( "4", "down" )) Lua:2: "<name>" expected near "," Link to comment
HassoN Posted July 26, 2019 Share Posted July 26, 2019 Your code has many undefined variables, forgotten arguments, etc... it basically doesn't make any sense. What are you trying to achieve? Link to comment
231 Posted July 27, 2019 Author Share Posted July 27, 2019 I was thinking if is it possible to make the square blip flashing Link to comment
HassoN Posted July 27, 2019 Share Posted July 27, 2019 44 minutes ago, 231 said: I was thinking if is it possible to make the square blip flashing Try this: local alpha = 100 function refreshColor() for _, blip in ipairs(getElementsByType("blip")) do if (getBlipIcon(blip) == 0) then alpha = alpha + 10 if (alpha >= 254) then alpha = 100 end local r, g, b = getBlipColor(blip) setBlipColor(blip, r, g, b, alpha) end end end setTimer(refreshColor, 50, 0) Link to comment
231 Posted July 27, 2019 Author Share Posted July 27, 2019 if it changes from team color to yellow and stops after 5 seconds? Link to comment
HassoN Posted July 27, 2019 Share Posted July 27, 2019 11 minutes ago, 231 said: if it changes from team color to yellow and stops after 5 seconds? What do you mean? Link to comment
231 Posted July 27, 2019 Author Share Posted July 27, 2019 Blip doesn't take suit color. and blip stops blinking. I want it to blink yellow Let it stop blinking after 5 seconds. and not visible to everyone 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