✅ Как сделать Watermark (водный знак) на экране как на MagicRP

Как сделать водный знак с названием сервера в углу экрана у каждого игрока.
Пример на фото:
image

local servers = {}

servers["212.22.93.178:27016"] = "1"

servers["212.22.93.116:27016"] = "2"

servers["212.22.93.60:27016"] = "3"

servers["212.22.93.60:27016"] = "3"

servers["212.22.93.145:27018"] = '4'

servers["82.202.197.109:27515"] = "T"

function GetCurrectServerNum(ip)

local adress = ip or game.GetIPAddress()

return servers[adress] or "?"

end

local w=ScrW()

local c4 = Color(55, 55, 55, 100)

local color_white = Color(255, 255, 255)

surface.CreateFont("HUD_Logo", {

font = "Codec Pro ExtraBold",

extended = true,

size = 40

})

hook.Add( "HUDPaint", "HUDPaint_DrawAServer", function()

draw.SimpleText("Magic", "HUD_Logo", w - 19 - surface.GetTextSize("RP") - surface.GetTextSize("#1"), 16, c4, 2)

draw.SimpleText("RP", "HUD_Logo", w - 19 - surface.GetTextSize("#1"), 16, c4, 2)

draw.SimpleText("Magic", "HUD_Logo", w - 20 - surface.GetTextSize("RP") - surface.GetTextSize("#1"), 15, Color(53, 168, 248), 2)

draw.SimpleText("RP", "HUD_Logo", w - 20 - surface.GetTextSize("#1"), 15, color_white, 2)

draw.SimpleText("#" .. GetCurrectServerNum(), "HUD_Logo", w - 19 + 12, 16, c4, 2)

draw.SimpleText("#" .. GetCurrectServerNum(), "HUD_Logo", w - 20 + 12, 15, color_white, 2)

end )

Куда код вставлять?

В клиент часть…

Переместил тему в отдел “Другое