Warkeyne Posted May 13, 2014 Posted May 13, 2014 Can help with the idea that when you click on the button "N" in the program Handling Editor [script], changed value USE_MAXSP_LIMIT, to start on "N" on and off would be pressed again and, if possible, when switched on, so that the picture appears in the corner of the screen (picture I already have), and when you turn off hiding.
Dealman Posted May 13, 2014 Posted May 13, 2014 Do you want to toggle an image when pressing the key N? I am somewhat confused as to what you want, sorry
Warkeyne Posted May 13, 2014 Author Posted May 13, 2014 Yes,but not only that,I meant that I have installed on the server Handling Editor it had a function USE_MAXSP_LIMIT and I need that this function would not run through the program, but run by simply pressing a button.
Warkeyne Posted May 15, 2014 Author Posted May 15, 2014 Now i must just find this func.,ok thank you.
Ab-47 Posted May 15, 2014 Posted May 15, 2014 Try rendering dxDrawImage Event- onClientRender Func- dxDrawImage You can also use Twerky's concept; bindKey("n","down", function() -- YOUR CODE HERE end) Like; local initiated = false bindKey("n","down", function() if (initiated == false) then initiated = true addEventHandler("onClientRender", root, drawImage) else removeEventHandler("onClientRender", root, drawImage) initiated = false return end end) function drawImage() dxDrawImage(x, y, h, w, "file.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) --Just change the arguments. end
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