Log in

View Full Version : Garry's Mod LUA Detours



SlapYoNuts
February 28th, 2014, 03:50 PM
These are just a few detours I have. Note: My cheat loads before autorun to kill the anti-cheat. If you have any questions feel free to post. If this is the wrong section please move.

Anti-Anti-Cheat.lua:


function Bypass_DAC()
chat.AddText( Color(127, 127, 127), "[DOGE] :: ", Color(0, 127, 127), "Attempting to bypass DAC. Lag In-Coming" )
for i = 100, 100000 do
hook.Remove( "Think", tostring(i) );
end
end


function Bypass_GmodZ()
chat.AddText( Color(127, 127, 127), "[DOGE] :: ", Color(0, 127, 127), "Attempting to bypass DAC. Lag In-Coming" )
hook.Remove( "Think", "PlayerInfoThing" );
end


function Bypass_CAC()
chat.AddText( Color(127, 127, 127), "[DOGE] :: ", Color(0, 127, 127), "Attempting to bypass DAC. Lag In-Coming" )
hook.Add( "Think", "sh_menu", function() return true; end )
hook.Remove( "Think", "sh_menu" );
end


timer.Simple(3, function() -- fuck forgot to detour timers and consolecommands oh well
Bypass_DAC()
Bypass_GmodZ()
Bypass_CAC()
end )


client_load.lua:



function DH:Detour( Old, New ) -- public function ( Just using because im way to lazy to take 5 minutes to write a new detour _
DH.Detours[New] = Old
return New
end


file.Read = DH:Detour( file.Read function( fn, path )
for k, v in pairs( DH.Files ) do
if ( string.find( fn, v ) then
chat.AddText( Color(127, 127, 127), "[DOGE] :: ", Color(0, 127, 127), "File.Read Blocked on file :: "..fn.."!" );
end
end


end )

PetersonPhilip
June 11th, 2017, 11:32 PM
Do I put these lua files just in the lua folder or somewhere else inside the lua folder?

JohnnyWalker
June 11th, 2017, 11:39 PM
Don't bump old topics.