Hey guys the title says it all. I am trying to make a player wanted for killing a npc_citizen in darkrp. This is what I have so far, but I can’t get it work because class isn’t quite defined right. Thanks in advanced.
local function NPCKilled( victim, killer, weapon ) if IsValid(victim) && IsValid(killer) then if !killer:IsPlayer() then return end if !victim:IsNPC() then return end if class["npc_citizen"] then killer:wanted("U.S.A", "Murdered A Citizen!", 120) end