Я не создавал окно
local x,y = guiGetScreenSize()
Font = dxCreateFont("fonts/GOTHIC.ttf", 20)
addEventHandler("onClientRender", root,
function()
dxDrawRectangle(0, 0, x, y, tocolor(1, 1, 1), false)
dxDrawRectangle(358, 159, 650, 450, tocolor(0, 0, 0), false)
dxDrawRectangle(358, 159, 650, 50, tocolor(187, 255, 51), false)
dxDrawText("WELCOM", 358, 159, 1008, 209, tocolor(0, 0, 0), 1, Font, "center", "center")
end
)
function Connect()
showCursor(true)
outputChatBox("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
BTN_L_A = guiCreateStaticImage(358, 209, 100, 25, "img/btn_l_a.png", false)
BTN_R = guiCreateStaticImage(458, 209, 140, 25, "img/btn_r.png", false)
BTN_GO = guiCreateStaticImage(608, 544, 150, 40, "img/btn_go.png", false)
addEventHandler("onClientGUIClick", BTN_GO, F_BTN_GO, false)
end
addEventHandler("onClientResourceStart", root, Connect)
function F_BTN_GO (button)
if button == "left" then
guiSetVisible(BTN_L_A, false)
guiSetVisible(BTN_R, false)
triggerServerEvent ("onGreeting", getLocalPlayer())
end
end
My script