Jump to content

[ HELP] Idea with car


Recommended Posts

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.

Link to comment

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 
  

Link to comment

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...