DarkRP (2.4.3) Adding CP Only Chat Sounds

Hello!

DarkRP Version: 2.4.3

So I was looking into putting custom chat sounds for Civil Protections (DarkRP.is.CP function). I was wondering how I would do this in the chatsounds.lua module.

I already have all the sound files and have coded that, but anyone can use them. I was looking into DarkRP functions, and found DarkRP.is.CP, and was wondering how I could have chat sounds for just CPs (CPs classified as DarkRP.is.CP).

If you don’t know what I mean by “chat sounds”, here’s an example: You say “cheese” in chat, and a sound plays “Sometimes I dream about cheese”.

Update:

All custom sound lines have been added. I put commenting of what sounds should be CP only. View the modified chatsounds.lua file here. All we need to do now is figure out how to make that section CP only.

Resources:

DarkRP 2.4.3 Functions: Click Here

Bump