WASSIm. Posted May 31, 2013 Share Posted May 31, 2013 (edited) hi guys i have problem its show me (nil) addEventHandler("onClientRender",root, function ( ) days = { [ '0' ] = 'SUN', [ '1' ] = 'MON', [ '2' ] = 'TUE', [ '3' ] = 'WED', [ '4' ] = 'THU', [ '5' ] = 'FRI', [ '6' ] = 'SAT', } day = days [getRealTime().weekday] dxDrawBorderedText(""..tostring(day).."",dx1, dy1, dx2,dy2,tocolor(195,195,195,255),5,scale2,font2,"center","top",false,false,false) end end ) Edited May 31, 2013 by Guest Link to comment
Vision Posted May 31, 2013 Share Posted May 31, 2013 Try this addEventHandler("onClientRender",root, function ( ) days = { [ 0 ] = 'SUN', [ 1 ] = 'MON', [ 2 ] = 'TUE', [ 3 ] = 'WED', [ 4 ] = 'THU', [ 5 ] = 'FRI', [ 6 ] = 'SAT', } day = days [getRealTime().weekday] dxDrawBorderedText(""..tostring(day).."",dx1, dy1, dx2,dy2,tocolor(195,195,195,255),5,scale2,font2,"center","top",false,false,false) end 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