function LoginBTN (acc,pw)
if (getAccount (acc,pw)) then
logIn ( client, acc, pw ) --- ERROR HERE
outputChatBox ("Exsiting")
spawnPlayer ( client, -2172.79419, 500.00000, 35.17188 )
setCameraTarget ( client )
triggerClientEvent (client,"hide",client)
else
outputChatBox ("Not Exsiting")
end
end
addEvent ("login",true)
addEventHandler( "login", getRootElement(),LoginBTN)
-- Server
There is a preblom with logIn function
function btns()
local acc = guiGetText (email_txt)
local pw = guiGetText (password_txt)
if (source == Login_btn) then
triggerServerEvent ("login",localPlayer,acc,pw)
end
end
addEventHandler ( "onClientGUIClick", root, btns )
-Client