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)
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