-
Автор темы
- #1
Учусь писать визуалы, вот сурс кому надо
SS:
SS:
code_language.lua:
local screen = render.screen_size()
local verdana = render.load_font("Times New Roman", 14)
local verdana2 = render.load_font("Times New Roman", 14)
local statepanelel = function()
if not entity.get_local_player() then return end
local bodyyaw = entity.get_local_player().m_flPoseParameter[11] * 120 - 60
if entity.get_threat() == nil then
target_name = "none"
else
target_name = entity.get_threat():get_name()
end
render.rect_outline(vector(15-10, screen.y/2-30-10), vector(10+160, screen.y/2-50+65), color(2, 2, 2, 255))
render.rect(vector(15-10, screen.y/2-30-10), vector(10+160, screen.y/2-50+65), color(math.random(2, 23), 55, 55, 115))
render.shadow(vector(15-10, screen.y/2-30-10), vector(10+160, screen.y/2-50+65), color(0, 255, 255, 225))
render.text(verdana2, vector(54, screen.y/2- 35), color(0, 0, 0, 255), nil, " WitchGang")
render.text(verdana, vector(53, screen.y/2- 37), color(2, 225, 225, 205), nil, " WitchGang")
render.text(verdana2, vector(7, screen.y/2- 42+30), color(0, 0, 0, 255), nil, " Target: ", target_name)
render.text(verdana, vector(8, screen.y/2- 44+30), color(2, 225, 225, 205), nil, " Target: ", target_name)
end
events.render:set(function()
statepanelel()
end)