Chat script

Where does the chat functions go in a script (what file are they found in)?
I’m trying to create a LightRP script - like ultra lite RP thats out, but as a standing gamemode, not an addon.
commands like /ooc /whisp etc. chat functions like that im not out to make classes etc. just a RP chat script that permanently on - not toggled by the console.

Sorry for posting here but i need help, and ive posted in lua question section today already…