so i have my admin options to not be able to touch world/blockd props. yet people can even use tools on them.
and i don't know what's wrong
here is an image of my physics gun settings
> Lua Developer Discussion?
so do you know what the problem is by any chance?
uh m8, theres no picture
Any chance you have an addon that may have a hook which overrides being able to pick up certain things with phys guns?
https://imgur.com/a/1ueCw0g
Sorry mate. i accidentally removed the picture.
i do have a few hooks but nothing relating with the physics gun.i think it might be this one.
hook.Add("OnNPCKilled", "RemoveWeaponsFromNPC", function(KilledNPC)for _, W in pairs(ents.GetAll()) do if W:IsWeapon() && W:GetOwner() == KilledNPC then
W:Remove()
end end end
)
concommand.Add("ClearWeaponsLyingAround", function(ply)for _, W in pairs(ents.GetAll()) do if W:IsWeapon() && (W:GetOwner() == NULL || !W:GetOwner():IsValid()) then
W:Remove()
end end end)