surface.CreateFont('fated_logo', {
font = 'Roboto Regular',
extended = false,
size = 22,
})
local scrw = ScrW()
local color_white = Color(255,255,255)
local color_black = Color(0,0,0)
local function Draw()
draw.SimpleTextOutlined(os.date('%H:%M:%S - %d/%m/%Y' , os.time()), 'fated_logo', scrw - 15, 15, color_white, TEXT_ALIGN_RIGHT, nil, 1, color_black)
draw.SimpleTextOutlined('НеЛикRP', 'fated_logo', scrw - 15, 36, color_white, TEXT_ALIGN_RIGHT, nil, 1, color_black)
end
hook.Add('HUDPaint', 'DarkFatedTimeLogo', Draw)
surface.CreateFont('fated_logo', {
font = 'Roboto Regular',
extended = false,
size = 22,
})
local scrw = ScrW()
local color_white = Color(255,255,255)
local color_black = Color(0,0,0)
local function Draw()
draw.SimpleTextOutlined(os.date('%H:%M:%S - %d/%m/%Y' , os.time()), 'fated_logo', scrw - 15, 15, color_white, TEXT_ALIGN_RIGHT, nil, 1, color_black)
draw.SimpleTextOutlined('НеЛикRP', 'fated_logo', scrw - 15, 36, color_white, TEXT_ALIGN_RIGHT, nil, 1, color_black)
end
hook.Add('HUDPaint', 'DarkFatedTimeLogo', Draw)
Опередил)os.date("%H:%M:%S - %d/%m/%Y", os.time())
draw.SimpleText
Draws text on the screen. This function does not handle newlines properly. See draw. DrawText for a function that does. This is a rendering function that requires a 2d rendering context. This means that it will only work in 2d Rendering Hooks.wiki.facepunch.comGM:HUDPaint
Called whenever the HUD should be drawn. This is the ideal place to draw custom HUD elements. To prevent the default game HUD from drawing, use GM:HUDShouldDraw. This hook does not get called when the Camera SWEP is held, or when the esc menu is open. If you need to draw in those situations, use...wiki.facepunch.com