hook.Remove("PreDrawHalos", "PropertiesHover")
hook.Remove("GUIMousePressed", "PropertiesClick")
hook.Remove("PreventScreenClicks", "PropertiesPreventClicks")
if CLIENT then return end
-- выключает все свойства
hook.Add("CanProperty", "brokencore.DisableProperty", function()
return false
end)
hook.Remove("PreDrawHalos", "PropertiesHover")
hook.Remove("GUIMousePressed", "PropertiesClick")
hook.Remove("PreventScreenClicks", "PropertiesPreventClicks")
if CLIENT then return end
-- выключает все свойства
hook.Add("CanProperty", "brokencore.DisableProperty", function()
return false
end)
Спасибо большоеgarrysmod/garrysmod/lua/includes/modules/properties.lua at dd120e1f100a0759fca71f540ead0793e8a1b581 · Facepunch/garrysmod
Sandbox mod for the Source Engine. Contribute to Facepunch/garrysmod development by creating an account on GitHub.github.com
Lua:hook.Remove("PreDrawHalos", "PropertiesHover") hook.Remove("GUIMousePressed", "PropertiesClick") hook.Remove("PreventScreenClicks", "PropertiesPreventClicks") if CLIENT then return end -- выключает все свойства hook.Add("CanProperty", "brokencore.DisableProperty", function() return false end)