Hi There !
Below code draw a DX text with Real World Time.
function time ()
local time = getRealTime()
local hours = time.hour
local minutes = time.minute
dxDrawRectangle (112, 468, 134, 47, tocolor(0, 0, 0, 150))
dxDrawText (hours..":"..minutes, 146, 476, 304, 536, tocolor(255,255,255), 2)
end
addEventHandler ( "onClientRender", root, time )
This time is in digital clock [ ex :- 1.30 PM ==> 13:30 , 6.00 PM ==> 18:00 ] And how to convert it to analog clock ?? [ ex :- 13:30 ==> 1.30 PM , 18:00 ==> 6.00 PM ]