LucasBaker Posted May 28, 2013 Share Posted May 28, 2013 my problem is this I downloaded this script dxdrawtext showing the actual time it right up there Only When some players are at a different resolution of the position of my dxdrawtext changes there something to do that is dxdrawtext Equally for all? the goal of dxdrawtext I put is to side with logo and in some cases is in the middle of the screen. Code: addEventHandler("onClientRender",root, function() local hours = getRealTime().hour local minutes = getRealTime().minute local seconds = getRealTime().second dxDrawText(hours..":"..minutes..":"..seconds,560, 550, 0, 30,tocolor(255,255,255,255),1,"sans") end ) addEventHandler("onClientRender",root, function() local dia = getRealTime().monthday local mes = getRealTime().month local ano = 2013 dxDrawText(dia.."/"..mes.."/"..ano,560, 560, 0, 30,tocolor(255,255,255,255),1,"sans") end ) Link to comment
iPrestege Posted May 28, 2013 Share Posted May 28, 2013 -- # Client Side : local x,y = guiGetScreenSize( ) local left,top,right,bottom = x*560/1360,y*550/768,x*0/1360,y*30/768 addEventHandler("onClientRender",root, function() local RealTime = getRealTime ( ) local hours = RealTime.hour local minutes = RealTime.minute local seconds = RealTime.second local dia = RealTime.monthday local mes = RealTime.month local ano = 2013 dxDrawText(hours..":"..minutes..":"..seconds,left,top,right,bottom,tocolor(255,255,255,255),1,"sans") dxDrawText(dia.."/"..mes.."/"..ano,left,top+10,right,bottom,tocolor(255,255,255,255),1,"sans") end ) Try this . 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