Freindly Fire in DarkRP

I am currently trying to make it to were none of the CP jobs take freindly fire damage. For example, if CP shoots the cheif then the cheif would take no damage and vice versa.

hook.Add(“PlayerShouldTakeDamage”, “DarkRP_CPFriendlyFire”, function(ply, attacker)
if ply:isCP() and IsValid(attacker) and attacker:IsPlayer() and attacker:isCP() then return false end

Create a folder in darkrp_modules with whatever name you want and in that, create a file called sh_*.lua where * can again be whatever name you want. This code should be placed in that file.

Alright thank you.