Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Hackcraft's ULX blind detour (Idea from crazyzultan)
- */
- local hooks = hook.GetTable()
- local HOOKADD = HOOKADD or hook.Add
- local badHooks = {
- ["HUDPaint"] = {
- ["ulx_blind"] = true
- }
- }
- for eventName, t in pairs(badHooks) do
- if hooks[eventName] then
- for identifier, func in pairs(t) do
- if hooks[eventName][identifier] then
- hook.Remove(eventName, identifier)
- end
- end
- end
- end
- function hook.Add(eventName, identifier, func)
- if badHooks[eventName] and badHooks[eventName][identifier] then
- return
- else
- return HOOKADD(eventName, identifier, func)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement