well this is stupid but f*** it ...
well i wanna make timepassed and runknum a g_GUI not a g_dxGUI.
so i can modify it whit guieditor ( just like timepassed and speedbar )
hope u guys understand what im saying ...
this what i tryed to do but didn't work.
local screenWidth, screenHeight = guiGetScreenSize()
g_dxGUI = {
ranknum = dxText:create('1', screenWidth - 60, screenHeight - 95, false, 'bankgothic', 0, 'right'),
ranksuffix = dxText:create('st', screenWidth - 40, screenHeight - 86, false, 'bankgothic', 0),
checkpoint = dxText:create('0/0', screenWidth - 15, screenHeight - 54, false, 'bankgothic', 0, 'right'),
mapdisplay = dxText:create('Map: none', 2, screenHeight - dxGetFontHeight(0.7, 'bankgothic')/2, false, 'bankgothic', 0.0, 'left')
}
g_dxGUI.ranknum:type('stroke', 2, 0, 0, 0, 255)
g_dxGUI.ranksuffix:type('stroke', 2, 0, 0, 0, 255)
g_dxGUI.checkpoint:type('stroke', 1, 0, 0, 0, 255)
g_GUI = {
timeleftbg = guiCreateStaticImage(647,25,108,24,"img/timeleft.png",false),
timeleft = guiCreateLabel(666,36,108,30, '', false),
healthbar = FancyProgress.create(250, 1000, 'img/progress_health_bg.png', -65, 60, 123, 30, 'img/progress_health.png', 8, 8, 108, 15),
speedbar = FancyProgress.create(0, 1.5, 'img/progress_speed_bg.png', -65, 90, 123, 30, 'img/progress_speed.png', 8, 8, 108, 15),
timepassed = guiCreateLabel(675,36,108,30, '', false),
}
guiSetFont(g_GUI.timeleft, 'default-small')
guiLabelSetHorizontalAlign(g_GUI.timeleft, 'center')
guiSetFont(g_GUI.timepassed, 'default-small')
guiLabelSetHorizontalAlign(g_GUI.timepassed, 'center')
g_GUI.speedbar:setProgress(0)
Please someone can tell me how to fix this crap or send me a race_client that is fixed