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: edita
1. IsMouseInPosition I Tworzenie edita

addEventHandler
("onClientClick",root, function(button,state)
if 
not state then return end
if isMouseInPosition (79760531956then
local x_edit
y_edit getCenter(304,190)
    
zaloguj=guiCreateEdit(x_edity_edit304/zoom35/zoom""false)
    
end
    end


witam mam pytanie jak zrobi? aby po klikni?ciu w pozycji 797, 605, 319, 56 tworzy? si? na ekranie edit.
2. sprawdzanie edita
tamten temat zbyt szybko domkn??em, taki kod
function deposit(button)
    if 
button == "left" then 
        local text 
guiGetText(myedit)
        if 
not text == "" then
            
if tonumber(textthen
                
if tonumber(text)<=getPlayerMoney(localPlayerthen
                    
-- triggerowanie do deposit
                    triggerServerEvent
("depositfunction"resourceRoottext)
                else
                    
outputChatBox("Nie posiadasz takiej sumy!"255255255true)
                
end
            
else
                
outputChatBox("Musisz wpisa? liczb?!"255255255true)
            
end
        
else
            
outputChatBox("Musisz wpisa? ile chcesz wp?aci?!"255255255true)
        
end
    end
end

zwraca co bym nie wpisa? w edita "misisz wpisa? ile cchesz wyp?aci?".