Hey! I’m looking for a script/where you can disable the popup from where a player joins or leaves your server.
I’m also searching for how to disable the chat completely, and only making it possible for the players to write for an example - /discord and the discord link will show up or putting in a /buttons for showing where the emote menu is or the job menu is.
So in the server Lua for your chat, remove the lines where it says that someone has joined.
Now Ima try something, I’m in class so Im gonna make this real quick, if It doesn’t work ill have another look when I actually have a spare 5 Minutes xD
AddEventHandler("chatMessage", function(source, name, message)
if message == "/discord" then
TriggerClientEvent("chatMessage", source, "Discord", {255, 255, 255}, "(Discord Link)")
end
end)
Not too sure what you mean by this:
But I assume a sort of help command sorta thing? I’m just going of what I think you mean, but, I’m an idiot so I’m probably wrong! Anyway:
AddEventHandler("chatMessage", function(source, name, message)
if message == "/buttons" then
TriggerClientEvent("chatMessage", source, "Buttons/Help", {255, 255, 255}, "Put info here?!")
end
end)
can this be changed so it doesnt say “joined” it says something else i ask because i tried and when i used chat it made my player freeze not sure if i did something wrong
Anyone know how to change the green “*playername joined.” when everyone joins to something more like (red) SERVER: playername/character name has entered the city."