djharbi2 Posted February 17, 2018 Share Posted February 17, 2018 addEventHandler("onClientGUIClick", root, function() if guiCheckBoxGetSelected(noti) then elseif not guiCheckBoxGetSelected(noti) then end end) Click on chechbox to block posts? server-side if triggerClientEvent(player, "messagesend", root, client, message) then outputChatBox("message send", player, 255, 168, 0, true) outputChatBox("message has arrived", client, 255, 168, 0, true) end Link to comment
DNL291 Posted February 17, 2018 Share Posted February 17, 2018 (edited) if guiCheckBoxGetSelected(noti) then triggerServerEvent( "messagesend", localPlayer, player ) end server addEvent( "messagesend", true ) addEventHandler( "messagesend", root, function ( player ) outputChatBox("message has arrived", client, 255, 168, 0, true) if isElement(player) then outputChatBox("message send", player, 255, 168, 0, true) end end ) Edited February 17, 2018 by DNL291 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