Jump to content

dxDrawRectangle


Msypon

Recommended Posts

It was a bit annoying to not know what purpose you need it for, but this is the best example I could create for you, it actually could've been better, but you get the point.

sX, sY = guiGetScreenSize() 
  
addEventHandler('onClientRender', getRootElement(), 
function() 
    dxDrawRectangle(sX, sY, 200, 50, tocolor(30, 30, 30, 200), false) 
    dxDrawRectangle(sX, sY, dxProgressBarGetProgress()*2, 50, tocolor(255, 0, 0, 200), false) 
end ) 
  
function dxProgressBarSetProgress(new) 
    progress = new 
end 
  
function dxProgressBarGetProgress() 
    return progress 
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...