diff --git a/entities/weapons/weapon_cs_base2/sv_commands.lua b/entities/weapons/weapon_cs_base2/sv_commands.lua index fbba651fe..e7e79fc4d 100644 --- a/entities/weapons/weapon_cs_base2/sv_commands.lua +++ b/entities/weapons/weapon_cs_base2/sv_commands.lua @@ -1,5 +1,8 @@ local meta = FindMetaTable("Player") function meta:dropDRPWeapon(weapon) + if !meta:IsValid() or !meta:IsPlayer() then return end + if !weapon:IsValid() or !meta:HasWeapon(weapon:GetClass()) then return end + if GAMEMODE.Config.restrictdrop then local found = false for k,v in pairs(CustomShipments) do