function getTime( )
local time = getRealTime( )
local h = time.hour
local m = time.minute
return (h % 12 and h % 12 or 12)..":"..(m < 10 and "0"..m or m).." "..(h >= 12 and "PM" or "AM")
end
TIME = guiCreateLabel(711, 141, 79, 33, tostring(getTime()), false)
guiSetFont(TIME, "sa-header")
addEventHandler("onClientRender",root,function()
guiSetText(TIME,tostring(getTime()))
end)