Need help on some quick code!


ChatBox.AddSound("enough of your mumbo jumbo", "vo/npc/male01/vanswer01.wav", true)

Most of the code is the same but with different sounds
Do i put this in my chatbox init file? Im not too sure where. I know what im doing with lua but dont understand where things go :confused:
I want it so if the player types “enough of your mumbo jumbo” into the chatbox the sound will play

More info please: what chatbox do you use?

Im using hatschat2 at the moment

Bump

Try this,


garrysmod\gamemodes\darkrp\gamemode\modules\chatsounds.lua

In here you can add any chat sound like, “Sometimes, I dream about cheese.”

ill test it out, thanks!