Blinker. Posted July 14, 2014 Share Posted July 14, 2014 Hello , is there a way to copy a defined thing from client side to server side ? Like if I type in a box a name and I press a button then a team should be created with that name . for example --client side function setteambutton (button,state, absoluteX,absoluteY) if source == abutton then team = guiGetText (edit) triggerServerEvent("create", root, create) end end addEventHandler ("onClientGuiClick", getRootElement (), setteambutton) --server side function create() createTeam (team) end addEvent ("create", true) addEventHandler ("create", root, create) thanks in advance Link to comment
bandi94 Posted July 14, 2014 Share Posted July 14, 2014 triggerServerEvent("create", localPlayer, team) server side : function create(team) Link to comment
Blinker. Posted July 14, 2014 Author Share Posted July 14, 2014 1 more question , after i did that , if i want to draw a text with the team name i get Attempt to concatenate a DataValue what's wrong ? 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