Chat problem

How do I stop the “/” from popping up in chat. Example: /dv will not pop up but will delete the car. If I mess up and type /dvb then it will show in a local chat. How can I stop “/” from showing up?

Because its not a valid command so it will show up as just someone talking… No command needed really.

Here is just a quick script I made to disable showing of text chat functions that start with /


__resource.lua

server_script 'sv.lua'

sv.lua

AddEventHandler(function(source, n, msg)
    if msg:sub(1, 2) == '/' then
        CancelEvent()
    end
end)

EDIT: If it’s not working then notify me.

1 Like

Thank you, going to test it when I a home.

1 Like

isnt work for me