Server not recognizing addon NPC's as regular NPC's.

Just as the title says. I downloaded NextBot Zombies 2.0
And everything works fine, it’s just the server won’t recognize them as regular NPC’s
so they don’t drop anything.

Tried using

if victim:GetClass == “nz_crazies” then

function GM:OnNPCKilled( victim, killer, weapon )

local RN = math.random(1,15)
if RN == 1 then
local Drop = ents.Create("cw_ammo_50ae")
Drop:SetPos(victim:GetPos()+Vector(0,0,5))
Drop:Spawn()
Drop:Activate()

elseif RN == 2 then
local Drop = ents.Create("cw_attpack_deagle_barrels")
Drop:SetPos(victim:GetPos()+Vector(0,0,5))
Drop:Spawn() 
Drop:Activate()

elseif RN == 3 then
local Drop = ents.Create("cw_ak74")
Drop:SetPos(victim:GetPos()+Vector(0,0,5))
Drop:Spawn()
Drop:Activate()

elseif RN == 4 then
local Drop = ents.Create("cw_ammo_556x45")
Drop:SetPos(victim:GetPos()+Vector(0,0,5))
Drop:Spawn()
Drop:Activate()

elseif RN == 5 then
elseif RN == 6 then
elseif RN == 7 then
elseif RN == 8 then
elseif RN == 9 then
elseif RN == 10 then
elseif RN == 11 then
elseif RN == 12 then
elseif RN == 13 then
elseif RN == 14 then
elseif RN == 15 then

end 

end
end

Use


 tags in the future. Put the if statement inside the function in the form of a return call if it's false. Also, convert that to a hook using hook.Add.

Tried it like that… Nothing. Any other solution? Kind of stuck in a hole here.