Sign in to follow this  
231

Help

Recommended Posts

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 ","

Share this post


Link to post

Your code has many undefined variables, forgotten arguments, etc...

it basically doesn't make any sense. What are you trying to achieve?

Share this post


Link to post

I was thinking if is it possible to make the square blip flashing

Share this post


Link to post
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)

 

Share this post


Link to post
if it changes from team color to yellow and stops after 5 seconds?

 

 

 
 
 
 

Share this post


Link to post
11 minutes ago, 231 said:

if it changes from team color to yellow and stops after 5 seconds?


 


 


 
 
 
 

What do you mean?

Share this post


Link to post
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

 

 

 
 
 
 

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.