Try this
--Values
GUIEditor = {}
local timeB = getRealTime()
local rRoot = resourceRoot
local monthday = timeB.monthday
local month = timeB.month
local year = timeB.year
function drawUserpanel()
GUIEditor.sidebar = guiCreateStaticImage(0.84, 0.00, 0.16, 1.00, "img/sidebar.png", true)
--Clock labels
GUIEditor.clockHoursLabel = guiCreateLabel(0.00, 0.00, 0.797, 0.12, "Hours", true, GUIEditor.sidebar)
GUIEditor.clockMinutesLabel = guiCreateLabel(0.00, 0.00, 1.197, 0.12, "Minutes", true, GUIEditor.sidebar)
GUIEditor.dateLabel = guiCreateLabel(0.08, 0.09, 0.89, 0.03, ""..monthday.."."..month.."."..year.."", true, GUIEditor.sidebar)
setTimer ( function()
local timeC = getRealTime()
local minutes = timeC.minute
local hours = timeC.hour
guiSetText ( GUIEditor.clockHoursLabel, ""..hours..":")
guiSetText ( GUIEditor.clockMinutesLabel, " "..minutes.."")
end, 50, 0
)
end
addEventHandler("onClientResourceStart", rRoot,drawUserpanel)