Jump to content

possible??


Blinker.

Recommended Posts

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...