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 (797, 605, 319, 56) then
local x_edit
, y_edit = getCenter(304,190)
    
zaloguj=guiCreateEdit(x_edit, y_edit, 304/zoom, 35/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(text) then
                
if tonumber(text)<=getPlayerMoney(localPlayer) then
                    
-- triggerowanie do deposit
                    triggerServerEvent
("depositfunction", resourceRoot, text)
                else
                    
outputChatBox("Nie posiadasz takiej sumy!", 255, 255, 255, true)
                
end
            
else
                
outputChatBox("Musisz wpisa? liczb?!", 255, 255, 255, true)
            
end
        
else
            
outputChatBox("Musisz wpisa? ile chcesz wp?aci?!", 255, 255, 255, true)
        
end
    end
end

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