Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: chatbox
1. onClick w dgs x2 text chatBox
Siema od pewnego czasu korzystam z dgs i mia?em taki sam problem jak korzystalem z normalnego gui mta wtedy korzysta?em z onClicka i wystarczy?o doda?
[center][code]and state == 'up' then[/code] do ifa isMouseInPosition[/center] i w funkcji (button, state) ale teraz nie wiem jak zrobi? takie co? z dgs

o to kodzik
[lua]addEventHandler("onDgsMouseClick", root, function()
if source == login.loginButton then
local login, pass = DGS:dgsGetText(login.loginEdit), DGS:dgsGetText(login.passEdit)
if string.len(login) < 2 or string.find(login," ") or string.len(pass) < 2 or string.find(pass," ") then outputChatBox("Posiadasz nie dozwolone znaki albo nie wype?ni?e?(/a?) wszystkich p?l.") return end
triggerServerEvent("registerAccount", localPlayer, login, pass)
elseif source == login.registerButton then
local login, pass = DGS:dgsGetText(login.loginEdit), DGS:dgsGetText(login.passEdit)
if string.len(login) < 2 or string.find(login," ") or string.len(pass) < 2 or string.find(pass," ") then outputChatBox("Posiadasz nie dozwolone znaki albo nie wype?ni?e?(/a?) wszystkich p?l.") return end
triggerServerEvent("checkAccount", localPlayer, login, pass)
elseif source == login.selectSpawn1 then
showCursor(false)
showChat(true)
local selected = 1
triggerServerEvent("onAnPlayerSelec...