Eso seria.
local screenWidth, screenHeight = guiGetScreenSize()
function createText()
local time = getRealTime()
local anio = string.format(" del %04d", time.year+1900)
local day = string.format(" %02d de ", time.monthday)
local mes =
{
[1] = "Enero",
[2] = "Febrero",
[3] = "Marzo",
[4] = "Abril",
[5] = "Mayo",
[6] = "Junio",
[7] = "Julio",
[8] = "Agosto",
[9] = "Septiembre",
[10] = "Octubre",
[11] = "Noviembre",
[12] = "Diciembre"
}
local dias =
{
[1] = "Domingo",
[2] = "Lunes",
[3] = "Martes",
[4] = "Miercoles",
[5] = "Jueves",
[6] = "Viernes",
[7] = "Sabado"
}
dxDrawText(dias[time.monthday]..day..mes[time.month+1]..anio, 0, screenHeight-21.8, screenWidth, screenHeight, tocolor (0,191,255,255), 1.2, "default-bold")
end
function HandleTheRendering()
addEventHandler("onClientRender", root, createText)
end
addEventHandler("onClientResourceStart", resourceRoot, HandleTheRendering)