feat(hooks): add 'Hook_CanDetachAttachment' to prevent attachment detaching

This commit is contained in:
Melow 2025-02-28 00:22:35 +02:00
parent a962cf1edf
commit 1c081c3437

View File

@ -602,6 +602,8 @@ function SWEP:CanDetach(addr)
if slottbl and slottbl.Integral then return false end
if self:RunHook("Hook_CanDetachAttachment", {addr = addr, slottbl = slottbl}) == false then return false end
return true
end