Baseplate Posted July 25, 2013 Share Posted July 25, 2013 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
Vision Posted July 25, 2013 Share Posted July 25, 2013 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
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