dontdo Posted June 20, 2016 Share Posted June 20, 2016 function btns() local acc = guiGetText (email_txt) local pw = guiGetText (password_txt) if (source == Login_btn) then end end addEventHandler ( "onClientGUIClick", root, btns ) how to use server side function after if condtion ? Link to comment
Bean666 Posted June 20, 2016 Share Posted June 20, 2016 u mean like this? triggerServerEvent("eventname", getLocalPlayer(), eventname) Link to comment
dontdo Posted June 20, 2016 Author Share Posted June 20, 2016 u mean like this? triggerServerEvent("eventname", getLocalPlayer(), eventname) No, i want to connect it with the server.lua file Link to comment
KariiiM Posted June 20, 2016 Share Posted June 20, 2016 triggerServerEvent function will do the job and put addEvent function in the server side to register the event, then add your event handler. Link to comment
dontdo Posted June 21, 2016 Author Share Posted June 21, 2016 triggerServerEvent function will do the job and put addEvent function in the server side to register the event, then add your event handler. Thanks Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now