okay so, I need this /dropweapon command removed.
I tried adding
local function removecmd() DarkRP.removeChatCommand("dropweapon") end hook.Add("OnGamemodeLoaded","removedropcmd",removecmd) hook.Add("OnReloaded","removedropcmd",removecmd)
hook.Add("CanDropWeapon", "example", function(ply, weapon) if not IsValid(weapon) then return end local class = weapon:GetClass() class = string.lower(class) -- The player spawns with this weapon if RPExtraTeams[ply:Team()] and table.HasValue(RPExtraTeams[ply:Team()].weapons, class) then return false end -- Return nothing otherwise to take the default (by default things like pocket and keys can't be dropped) end)
which all of these were added in my darkrpmod folder in modules, named sv_whatever.lua any ideas to remove this command?