Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mt = getrawmetatable(game)
- local old_i = mt.__index
- local old_n = mt.__namecall
- do
- local f = setreadonly or make_writeable or fullaccess or function() return end
- pcall(f, mt, false)
- end
- local newcclosure = newcclosure or function(f) return f end
- local checkcaller = checkcaller or is_protosmasher_caller or function(env) return env.getrawmetatable end
- mt.__namecall = newcclosure(function(self, ...)
- local p = {...}
- local m = table.remove(p, #p)
- if m == "HttpGet" or m == 'HttpGetAsync' then
- local url = p[1]
- if string.lower(url):find("getauthticket") then
- return 0
- print("nope xdxdxd")
- end
- end
- return old_n(self, ...)
- end)
- mt.__index = newcclosure(function(t, k)
- if t == game and checkcaller(getfenv(2)) then
- if k == 'HttpGet' then
- return function(self, url, ...)
- return game:HttpGet(url, ...)
- end
- elseif k == 'HttpGetAsync' then
- return function(self, url, ...)
- return game:HttpGetAsync(url, ...)
- end
- end
- end
- return old_i(t, k)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement