Jump to content

i need help :(


iiv03

Recommended Posts

Posted
local show = false
local alpha = 0
	screenWidth, screenHeight = guiGetScreenSize()
	scale = (screenWidth/1280)*(screenHeight/720)
addEventHandler("onClientRender", getRootElement(),
	function()
    	if show then
      		alpha = math.min(alpha + 20, 255)
      	else
      		alpha = math.max(alpha - 20, 0)
        end
    
    	dxDrawRectangle(screenWidth/3.3595, screenHeight/2.4406, screenWidth/2.4710, screenHeight/5.4961, tocolor(0, 0, 0, 148), alpha))
    end
)

bindKey("F1", "down",
	function()
		show = not show  
  	end
)

what is problem?

Posted (edited)
bindKey("F1", "down",
function()
	if show then
		show = false
	else
		show = true
	end
end)

 

Edited by SaNoR
Posted (edited)
On 12/10/2018 at 20:34, SaNoR said:

bindKey("F1", "down",
function()
	if show then
		show = false
	else
		show = true
	end
end)

 

not working ..

On 12/10/2018 at 18:58, LilDawage said:
  1. bindKey("F1", "down",
  2. function()
  3. show = not show
  4. end
  5. )
  6. fix you Bind bro

hm. why i publishing post? because i need help .___.  I want to fix a mistake dude

On 12/10/2018 at 17:28, Biistamais said:

What issues are you facing? Reading the whole script is honestly messy if you don't even know what's wrong.

I know where I was wrong but I tried to make a mistake. I can not and i want help . but why u like [snip] xD?

Edited by Dutchman101
removed insult
Posted
dxDrawRectangle(screenWidth/3.3595, screenHeight/2.4406, screenWidth/2.4710, screenHeight/5.4961, tocolor(0, 0, 0, alpha))

 

Posted

nor work .
:21:unexpexted symbol near '

4 minutes ago, SaNoR said:

dxDrawRectangle(screenWidth/3.3595, screenHeight/2.4406, screenWidth/2.4710, screenHeight/5.4961, tocolor(0, 0, 0, alpha))

 

nor work .
:21:unexpexted symbol near '

thanks for help i fixed problem

Posted
On 14/10/2018 at 21:01, liwahadri said:

I know where I was wrong but I tried to make a mistake. I can not and i want help . but why u like [snip] xD?

You just posted a script and the topic was against the guidelines, you didn't write whats wrong or what errors do you have. What do you expect?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...