addEventHandler("onClientClick", root, function(button, state) -- zaloguj
if isMouseInPosition(screenW * 0.5894, screenH * 0.3411, screenW * 0.1175, screenH * 0.0611) and state == 'up' then
local login, pass = guiGetText(loginn), guiGetText(hasloo)
triggerServerEvent("checkAccount", localPlayer, login, pass)
if string.len(loginn) < 2 or string.len(hasloo) < 2 then
end
end)
addEventHandler("onClientClick", root, function(button, state) -- zarejestruj
if isMouseInPosition(screenW * 0.5887, screenH * 0.5644, screenW * 0.1175, screenH * 0.0611) and state == 'up' then
local login, pass = guiGetText(loginn), guiGetText(hasloo)
triggerServerEvent("registerAccount", localPlayer, login, pass)
end
end)