MRXBBC Posted June 13, 2020 Posted June 13, 2020 Gostaria de repassar a variavel do cliente para o server, n lembro muito bem como se faz esse processo //Cliente// function outputEditBox (buttom, state) local item = dgsComboBoxGetSelectedItem(qiw) if buttom == "left" and state == "down" then if item ~= -1 then text = dgsGetText ( editBox ) text2 = dgsComboBoxGetItemText(qiw, item) end end end addEventHandler ( "onDgsMouseClick", buttom, outputEditBox ) function Receber( text, text2) if ( hasObjectPermissionTo ( source, "function.mute", true ) ) then outputChatBox (text .. "" .. text2, source ) end end addEvent ("Receber>Dados", true) addEventHandler ("Receber>Dados", root, Receber)
MRXBBC Posted June 13, 2020 Author Posted June 13, 2020 52 minutes ago, MRXBBC said: Gostaria de repassar a variavel do cliente para o server, n lembro muito bem como se faz esse processo //Cliente// function outputEditBox (buttom, state) local item = dgsComboBoxGetSelectedItem(qiw) if buttom == "left" and state == "down" then if item ~= -1 then text = dgsGetText ( editBox ) text2 = dgsComboBoxGetItemText(qiw, item) end end end addEventHandler ( "onDgsMouseClick", buttom, outputEditBox ) function Receber( text, text2) local text = tostring(text) local text2 = tostring(text2) if ( hasObjectPermissionTo ( source, "function.mute", true ) ) then outputChatBox (text .. "" .. text2, source ) end end addEvent ("Receber>Dados", true) addEventHandler ("Receber>Dados", root, Receber)
Scripting Moderators thisdp Posted June 14, 2020 Scripting Moderators Posted June 14, 2020 triggerServerEvent
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