iiv03 Posted October 12, 2018 Share Posted October 12, 2018 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? Link to comment
keymetaphore Posted October 12, 2018 Share Posted October 12, 2018 What issues are you facing? Reading the whole script is honestly messy if you don't even know what's wrong. Link to comment
LilDawage Posted October 12, 2018 Share Posted October 12, 2018 bindKey("F1", "down", function() show = not show end ) fix you Bind bro Link to comment
SaNoR Posted October 12, 2018 Share Posted October 12, 2018 (edited) bindKey("F1", "down", function() if show then show = false else show = true end end) Edited October 12, 2018 by SaNoR Link to comment
iiv03 Posted October 14, 2018 Author Share Posted October 14, 2018 (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: bindKey("F1", "down", function() show = not show end ) 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 October 16, 2018 by Dutchman101 removed insult Link to comment
SaNoR Posted October 14, 2018 Share Posted October 14, 2018 dxDrawRectangle(screenWidth/3.3595, screenHeight/2.4406, screenWidth/2.4710, screenHeight/5.4961, tocolor(0, 0, 0, alpha)) Link to comment
iiv03 Posted October 14, 2018 Author Share Posted October 14, 2018 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 Link to comment
keymetaphore Posted October 15, 2018 Share Posted October 15, 2018 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? 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