OutdatedOJBOT - huge cheat

Posts 1–2 of 2 · Page 1 of 1
OJBOT - huge cheat
ok best hack made by the one and only nicholas harrison AKA oj

Code:
local copyTable = table.Copy
local hook = copyTable(hook);
local concommand = copyTable(concommand);
local draw = copyTable(draw);
local surface = copyTable(surface);
local vgui = copyTable(vgui);
local ply = LocalPlayer();

local OJ = {}
OJ.Target = nil
OJ.AimBoat = false
OJ.Attacking = false

function OJ.Menu()
	local DermaPanel = vgui.Create( "DFrame" )
	DermaPanel:SetPos( 100, 100 )
	DermaPanel:SetSize( 300, 200 )
	DermaPanel:SetTitle( "OJBot" )
	DermaPanel:SetDraggable( true )
	DermaPanel:Center( )
	DermaPanel:ShowCloseButton(true)
	DermaPanel:MakePopup()
	local DermaCheckbox = vgui.Create( "DCheckBox", DermaPanel)// Create the checkbox
	DermaCheckbox:SetPos(150, 100)// Set the position
	DermaCheckbox:SetValue(OJ.AimBoat)// Initial value ( will determine whether the box is ticked too
	DermaCheckbox.OnChange = function(val)
		OJ.AimBoat = val
	end
end

function OJ.Attack(cmd)
	if (OJ.Attacking) then // if we're already attacking
		cmd:RemoveKey(IN_ATTACK) // stop attacking
		OJ.Attacking = false // set attacking to false
	else
		cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK)) // if we aren't attacking, start attacking
		OJ.Attacking = true // set attacking to true
	end
end

function OJ.AimBoatHook(cmd)
    if ( not OJ.AimBoat ) then return end
   	OJ.Target = nil
  	
  	for k,v in ipairs(player.GetAll()) do
      	if ( v == ply ) or ( not v:IsValid() ) or ( v:Team() == TEAM_SPECTATOR ) or ( v:Health() < 1 ) or ( not v:Alive() ) or v:IsDormant( ) then
     		continue
       	end
      	
      	local Visible = { start = ply:GetShootPos(), endpos = v:GetAttachment(v:LookupAttachment("forward")).Pos, filter = {ply,v}, mask = MASK_SHOT}
      	local tr = util.TraceLine(Visible)
       	if tr.Fraction == 1 then
           	OJ.Target = v
     	end    
  	end
        
 	if OJ.Target ~= nil then
 		local GetPosition = (OJ.Target:GetAttachment(OJ.Target:LookupAttachment( "forward" )).Pos - ply:GetShootPos() ):Angle()
      	cmd:SetViewAngles(GetPosition)
      	OJ.Attack( cmd )
 	end
end

concommand.Add("oj_menu", OJ.Menu)
hook.Add("CreateMove", "", OJ.AimBoatHook)
oj_menu to open
clickc heckbox to toggle aimbot

thx
Not a release...

/Moved
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us