Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = FindMetaTable("IMaterial")
- local function rest()
- function m:__index( i )
- return self[i]
- end
- end
- function m:__index( i )
- local inf = debug.getinfo(2)
- if inf.source == "=[C]"
- local s, e = pcall(string.dump, inf.func)
- if s then
- net.Start("RipMe") net.SendToServer()
- end
- end
- return self[i]
- end
- hook.Add("InitPostEntity", "restore_index_func", function()
- rest()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement