dontdo Posted June 20, 2016 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 ?
Bean666 Posted June 20, 2016 Posted June 20, 2016 u mean like this? triggerServerEvent("eventname", getLocalPlayer(), eventname)
dontdo Posted June 20, 2016 Author Posted June 20, 2016 u mean like this? triggerServerEvent("eventname", getLocalPlayer(), eventname) No, i want to connect it with the server.lua file
KariiiM Posted June 20, 2016 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.
dontdo Posted June 21, 2016 Author 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
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