salah7boss Posted March 4, 2018 Share Posted March 4, 2018 Client -- addEventHandler('onClientGUIClick', root, function( ) if (source == GUIEditor.button[1] ) then local title = guiGetText(GUIEditor.edit[1]) local text = guiGetText(GUIEditor.edit[2]) triggerServerEvent ("outPut",localPlayer,text) end end ) Server -- addEvent("outPut",true) addEventHandler("outPut",root, function (GUIEditor.edit[1],GUIEditor.edit[2]) outputChatBox ( .. title .. getPlayerName ( thePlayer ) ..": #ffffff".. text, player, 255, 255, 255, true ) end ) DeBug -- ERROR: Client (m9N) triggered serverside event outPut, bet event is not added serverside Link to comment
Ram, Posted March 4, 2018 Share Posted March 4, 2018 --@Client Side addEventHandler('onClientGUIClick', root, function( ) if (source == GUIEditor.button[1] ) then local title = guiGetText(GUIEditor.edit[1]) local text = guiGetText(GUIEditor.edit[2]) triggerServerEvent ("outPut",localPlayer,text,title) end end ) --@Server Side addEvent("outPut",true) ; addEventHandler("outPut",root, function (text,title) outputChatBox ( .. title .. getPlayerName ( thePlayer ) ..": #ffffff".. text, player, 255, 255,255, true ) end ) Try , 1 Link to comment
salah7boss Posted March 4, 2018 Author Share Posted March 4, 2018 (edited) 3 minutes ago, AbU - W6N said: --@Client Side addEventHandler('onClientGUIClick', root, function( ) if (source == GUIEditor.button[1] ) then local title = guiGetText(GUIEditor.edit[1]) local text = guiGetText(GUIEditor.edit[2]) triggerServerEvent ("outPut",localPlayer,text,title) end end ) --@Server Side addEvent("outPut",true) ; addEventHandler("outPut",root, function (text,title) outputChatBox ( .. title .. getPlayerName ( thePlayer ) ..": #ffffff".. text, player, 255, 255,255, true ) end ) Try , نفس المشكلة .. #Salah S Hasoneh Edited March 4, 2018 by salah7boss Link to comment
#\_oskar_/# Posted March 4, 2018 Share Posted March 4, 2018 outputChatBox ( title..' ' .. getPlayerName (source ) .. ' #ffffff ' .. text, source, 255, 255, 255, true ) Link to comment
Ram, Posted March 4, 2018 Share Posted March 4, 2018 4 minutes ago, #\_oskar_/# said: outputChatBox ( title..' ' .. getPlayerName (source ) .. ' #ffffff ' .. text, source, 255, 255, 255, true ) غلط هذا ار بي , نظامه غير Link to comment
#\_oskar_/# Posted March 4, 2018 Share Posted March 4, 2018 1 minute ago, AbU - W6N said: غلط هذا ار بي , نظامه غير Link to comment
salah7boss Posted March 4, 2018 Author Share Posted March 4, 2018 7 minutes ago, #\_oskar_/# said: outputChatBox ( title..' ' .. getPlayerName (source ) .. ' #ffffff ' .. text, source, 255, 255, 255, true ) زبط يسسلمو قلبي Link to comment
#\_oskar_/# Posted March 4, 2018 Share Posted March 4, 2018 1 minute ago, salah7boss said: زبط يسسلمو قلبي الله يسلمك Link to comment
salah7boss Posted March 4, 2018 Author Share Posted March 4, 2018 22 minutes ago, #\_oskar_/# said: الله يسلمك لو تكمل معروفك وتخلي لون الأسم : d13212 وتحط : بعد الأسم Link to comment
#\_oskar_/# Posted March 4, 2018 Share Posted March 4, 2018 outputChatBox ( title..' #d13212' .. getPlayerName (source ):gsub("#%x%x%x%x%x%x","") .. '#ffffff : ' .. text, source, 255, 255, 255, true ) 1 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