I need help with a code that can remove all hl2 weapons from a map.
I already tried to make something, but it doesent work(im a big Lua noob)
Here’s the code:
function removeguns() local guns = ents.FindByClass("weapon_*") guns:Remove() end hook.Add("Initialize", "removeguns", removeguns)
can you please help me?