OutdatedCAC Undetected Hook

Posts 1–3 of 3 · Page 1 of 1
CAC Undetected Hook
Welcome to mpgh users today kittix to buy a new cat-hackers, you're in the game.

Code:
local h = {
	hooks = {},
};

local null = function() end

function h.detour(typ)
	h.hooks[typ] = {};

	local ofunc = GAMEMODE[typ] || null;

	GAMEMODE[typ] = function(self, ...)

		ofunc(self, ...);

		for k,v in next, h.hooks[typ] do
			local ret1, ret2, ret3, ret4 = v(...);
			if(ret1) then return ret1, ret2, ret3, ret4; end
		end

	end
end

function h.Add(typ, func)
	if(!h.hooks[typ]) then
		h.detour(typ);
	end

	h.hooks[typ][ #h.hooks[typ] + 1 ] = func;
end

--example:

h.Add("Think", function() print("nice"); end);
debug.getupvalue
It's fixed in the newest cac is there any way to make it work again?
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us