local function ECPD2NPCSpawned( pl, npc ) if npc:GetModel( ):lower( ):match( "^models/icpd/cops" ) then npc:SetSkin( math.random( 0, 1 ) ) for i = 2, 5 do npc:SetBodygroup( 1, math.random( 0, 8 ) ) npc:SetBodygroup( 2, math.random( 0, 8 ) ) npc:SetBodygroup( 3, math.random( 0, 8 ) ) npc:SetBodygroup( 4, math.random( 0, 8 ) ) npc:SetBodygroup( 5, math.random( 0, 8 ) ) npc:SetBodygroup( 6, math.random( 0, 8 ) ) npc:SetBodygroup( 7, math.random( 0, 8 ) ) npc:SetBodygroup( 8, math.random( 0, 8 ) ) end end end hook.Add( "PlayerSpawnedNPC", "ECPD2 NPC Spawn", ECPD2NPCSpawned )