Jump to content

Stats


Recommended Posts

Hello, well looks like I have problems with my current code

StatsWnd = guiCreateWindow(0, 358, 474, 410, "Stats Panel", false) 
guiSetVisible(StatsWnd, false) 
guiWindowSetSizable(StatsWnd, false) 
progressColt = guiCreateProgressBar(9, 53, 455, 33, false, StatsWnd) 
coltLabel = guiCreateLabel(19, 25, 196, 28, "Colt", false, StatsWnd)     
  
local colt = getPedStat (localPlayer, 69) 
  
bindKey("F3","down", 
function() 
guiSetVisible(StatsWnd,not guiGetVisible(StatsWnd)) 
showCursor(guiGetVisible(StatsWnd)) 
end 
) 
  
addEventHandler("onClientRender", root, 
function() 
        guiProgressBarSetProgress(progressColt, colt/10) 
end 
) 
  
  

Link to comment

Try this

StatsWnd = guiCreateWindow(0, 358, 474, 410, "Stats Panel", false) 
guiSetVisible(StatsWnd, false) 
guiWindowSetSizable(StatsWnd, false) 
progressColt = guiCreateProgressBar(9, 53, 455, 33, false, StatsWnd) 
coltLabel = guiCreateLabel(19, 25, 196, 28, "Colt", false, StatsWnd)     
  
bindKey("F3","down", 
function() 
guiSetVisible(StatsWnd,not guiGetVisible(StatsWnd)) 
showCursor(guiGetVisible(StatsWnd)) 
end 
) 
  
addEventHandler("onClientRender", root, 
function() 
    local colt = getPedStat (localPlayer, 69) 
    guiProgressBarSetProgress(progressColt, colt/10) 
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...