[Help/Release] looking for something for something
im looking for the module for dis...no not the .dll but the lua that goes in the path - lua/includes/modules...if i acually need to put the .dll in that path then let me know.
its called fhook.lua
o and i have the nyx module
and that one is in the bin so idk whats wrong
any help is appreciated, thx
btw this is a hack by Kieru i think...idk if its been released before
its called fhook.lua
o and i have the nyx module
and that one is in the bin so idk whats wrong
any help is appreciated, thx
btw this is a hack by Kieru i think...idk if its been released before
Code:
local fh = {}
fh.spread = {}
fh.hooks = {}
fh.target = nil
local _R = debug.getregistry()
--[[
Localization
]]
local debug = debug
local IsValid = IsValid
local vgui = vgui
local input = input
local type = type
local util = util
local tonumber = tonumber
local math = math
local surface = surface
local pairs = pairs
local draw = draw
local tobool = tobool
local team = team
local Color = Color
local bit = bit
local type = type
local player = player
local Vector = Vector
local engine = engine
local Angle = Angle
local table = table
local CreateFont = surface.CreateFont
local Random = math.random
local Insert = table.insert
local ApproachAngle = math.ApproachAngle
local abs = math.abs
local NormalizeAngle = math.NormalizeAngle
local Clamp = math.Clamp
local bor = bit.bor
local TraceLine = util.TraceLine
local SetDrawColor = surface.SetDrawColor
local GetColor = team.GetColor
local GetName = team.GetName
local DrawOutlinedRect = surface.DrawOutlinedRect
local SimpleText = draw.SimpleText
local IsMouseDown = input.IsMouseDown
local IsKeyDown = input.IsKeyDown
local TickInterval = engine.TickInterval
local GetAllPlayers = player.GetAll
fh[ 'SetViewAngles' ] = _R.CUserCmd.SetViewAngles
local __eq = __eq
local __tostring = __tostring
local __gc = __mul
local __index = __index
local __concat = __concat
local __newindex = __newindex
local __add = __add
local __sub = __sub
local __div = __div
local __call = __call
local __pow = __pow
local __unm = __unm
local __lt = __lt
local __le = __le
local __mode = __mode
local __metatable = __metatable
--[[
Detours
]]
local oFireBullets = _R.Entity.FireBullets
_R.Entity.FireBullets = function(ent, bullet)
local lp = LocalPlayer()
local w = lp:GetActiveWeapon():GetClass()
fh.spread[w] = bullet.Spread * -1
return oFireBullets(ent, bullet)
end
--[[
Fonts used in FriendlyHack
]]
CreateFont("Lover", {
font = "Arial",
size = 50,
} )
CreateFont("Lover2", {
font = "Arial",
size = 20
} )
--[[
Functions used in FriendlyHack
]]
function fh.AddHook(type, func)
hook.Add(type,'', func)
end
require("fhook")
require("nyx")
function fh.PredictSpread(ucmd, aAng)
local w = LocalPlayer():GetActiveWeapon()
if !IsValid(w) then
return aAng
end
if fh.spread[w:GetClass()] then
local GunCone = fh.spread[w:GetClass()]
if type(GunCone) == "Vector" then
return (_nyx.PredictSpread(ucmd, aAng, GunCone)):Angle()
end
end
return aAng
end
function fh.Smooth(ucmd, AimSpeed, ang)
ang.p = ApproachAngle(ucmd:GetViewAngles().p, ang.p, AimSpeed )
ang.y = ApproachAngle(ucmd:GetViewAngles().y, ang.y, AimSpeed )
return ang
end
function fh.InsideFov(ent)
if fh.Variable["Aimbot_fov"] == 180 then return true end
local GetFov = fh.Variable["Aimbot_fov"]
local lp = LocalPlayer()
local ang = lp:GetAngles()
local lang = (ent:GetPos() - lp:GetPos()):Angle()
local angleP = abs(NormalizeAngle(ang.p - lang.p))
local angleY = abs(NormalizeAngle(ang.y - lang.y))
return (angleY < GetFov and angleP < GetFov)
end
local oa = Angle()
function fh.SilentAim(ucmd)
if fh.Variable["Aimbot_silent"] then
oa = oa + Angle(ucmd:GetMouseY() * 0.023, ucmd:GetMouseX() * -0.023, 0)
oa.p = Clamp( oa.p, -89, 89 )
oa.y = NormalizeAngle( oa.y )
else
oa = ucmd:GetViewAngles()
end
end
function fh.MovementFix(ucmd)
local GetFix = Vector(ucmd:GetForwardMove(), ucmd:GetSideMove(), 0)
GetFix = (GetFix:Angle() + ucmd:GetViewAngles() - oa):Forward() * GetFix:Length()
ucmd:SetForwardMove(GetFix.x)
ucmd:SetSideMove(GetFix.y)
end
local AutoShoot = 0
function fh.AutoShoot(ucmd)
local lp = LocalPlayer()
ucmd:SetButtons(bor(ucmd:GetButtons(), IN_ATTACK))
if lp:GetActiveWeapon() and IsValid(lp:GetActiveWeapon()) and lp:GetActiveWeapon().Primary and lp:GetActiveWeapon().Primary.Automatic == false then
if AutoShoot == 3 then
ucmd:RemoveKey(IN_ATTACK)
AutoShoot = 0
else
AutoShoot = AutoShoot + 1
end
else
AutoShoot = 0
end
end
function fh.GetHead(ent)
local eyes = Vector()
local head = Vector()
local forward = Vector()
if ( ent:LookupAttachment("forward") ~= 0 ) then
forward = ent:GetAttachment(ent:LookupAttachment("forward")).Pos
return ( forward )
end
if ( ent:LookupAttachment("eyes") ~= 0 ) then
eyes = ent:GetAttachment(ent:LookupAttachment("eyes")).Pos
return ( eyes )
end
if ( ent:LookupBone( 'ValveBiped.Bip01_Head1' ) ) then
head = ent:GetBonePosition( ent:LookupBone( 'ValveBiped.Bip01_Head1' ) ) + Vector(0, 0, 2)
if ( head ) then
return head
end
end
local GetCenter = ent:GetPos() + ent:OBBCenter()
return GetCenter
end
function fh.IsVisible(ent)
local lp = LocalPlayer()
local GetHead = fh.GetHead(ent)
local LocalPos = lp:GetShootPos()
local GetCenter = ent:GetPos() + ent:OBBCenter()
local PitchAngle = ent:EyeAngles().p
local GetTrace = {
["start"] = LocalPos,
["endpos"] = GetHead,
["mask"] = MASK_SHOT,
["filter"] = { lp, ent },
}
if PitchAngle >= 90 or PitchAngle <= -90 then
GetTrace.endpos = GetCenter
end
local tr = TraceLine(GetTrace)
return ( tr.Fraction ) or ( tr.Entity == fh.target )
end
function fh.PlayerPosition(ent)
local GetHead = fh.GetHead(ent)
local GetCenter = ent:GetPos() + ent:OBBCenter()
local PitchAngle = ent:EyeAngles().p
if PitchAngle >= 90 or PitchAngle <= -90 then
GetHead = GetCenter
end
return GetHead
end
--[[
Vars For FriendlyHack
]]
fh.Variable = {}
fh.Variable["Aimbot"] = false
fh.Variable["Aimbot_nospread"] = false
fh.Variable["Aimbot_autoshoot"] = false
fh.Variable["Aimbot_aimkey"] = false
fh.Variable["Aimbot_aimkey_key"] = MOUSE_5
fh.Variable["Aimbot_smooth"] = false
fh.Variable["Aimbot_silent"] = true
fh.Variable["Aimbot_bonescan"] = false
fh.Variable["Aimbot_ignoreteam"] = false
fh.Variable["Aimbot_ignorefriends"] = false
fh.Variable["Aimbot_smooth_smoothfactor"] = 0.5
fh.Variable["Aimbot_fov"] = 180
fh.Variable["TriggerBot"] = false
fh.Variable["TriggerBot_AimKey"] = false
fh.Variable["TriggerBot_AimKey_Key"] = MOUSE_5
fh.Variable["bhop"] = false
fh.Variable["Box_Esp"] = false
fh.Variable["Name_esp"] = false
fh.Variable["Health_esp"] = false
fh.Variable["Team_esp"] = false
fh.Variable["User_esp"] = false
fh.Variable["AutoPistol"] = false
fh.Variable["ChatSpam"] = false
fh.Variable["NameChanger"] = false
fh.Variable["Murder"] = false
fh.Variable["Murder_Spoil"] = false
fh.Variable["AntiAim"] = false
fh.Variable["ThirdPerson"] = false
--[[
Hooked functions
]]
function fh.bhop(ucmd)
local lp = LocalPlayer()
if fh.Variable["bhop"] then
if ucmd:KeyDown(IN_JUMP) then
if lp:OnGround() then
ucmd:SetButtons(bor(ucmd:GetButtons(), IN_JUMP))
else
ucmd:SetButtons(ucmd:GetButtons() - IN_JUMP)
end
end
end
end
function fh.esp()
local ply = LocalPlayer()
if fh.Variable["Box_Esp"] or fh.Variable["Name_esp"] or fh.Variable["Health_esp"] or fh.Variable["Team_esp"] or fh.Variable["User_esp"] then
local plys = GetAllPlayers()
for i = 1, #plys do
local v = plys[i]
i = i+1
if ( not v:Alive() ) or ( v:Team() == TEAM_SPECTATOR ) or ( v == ply ) then continue end
local min,max = v:OBBMins(),v:OBBMaxs()
min = v:GetPos() + Vector(0, 0, min.z)
max = v:GetPos() + Vector(0, 0, max.z)
min = min:ToScreen()
max = max:ToScreen()
local mid = (min.y - max.y)
local Wide = (mid / 2)
local hid = (Wide / 2)
local Pos = min.y + 10
if fh.Variable["Box_Esp"] then
SetDrawColor(GetColor(v:Team()))
DrawOutlinedRect(max.x - hid, max.y, Wide, mid) -- Base Box
SetDrawColor(Color(0, 0, 0))
DrawOutlinedRect(max.x - hid - 1, max.y - 1, Wide + 2, mid + 2) -- Cushioning
DrawOutlinedRect(max.x - hid + 1, max.y + 1, Wide - 2, mid - 2) -- Cushioning
end
if fh.Variable["Name_esp"] then
SimpleText(v:Name(), "BudgetLabel", max.x, max.y - 10, Color(255,255,255), 1, 1) -- Top box text
end
if fh.Variable["Health_esp"] then
SimpleText("HP: "..v:Health(), "BudgetLabel", max.x, Pos, Color(0, 255, 0), 1, 1) -- Bottom box text
Pos = Pos + 10
end
if fh.Variable["Team_esp"] then
SimpleText("Team: ".. GetName(v:Team()), "BudgetLabel", max.x, Pos, GetColor(v:Team()), 1, 1) -- Bottom box text
Pos = Pos + 10
end
if fh.Variable["User_esp"] then
SimpleText(v:GetUserGroup(), "BudgetLabel", max.x, Pos, Color(100, 100, 255), 1, 1) -- Bottom box text
Pos = Pos + 10
end
if v:GetFriendStatus() == "friend" then
SimpleText("Friend", "BudgetLabel", max.x, Pos, Color(255,255,255), 1, 1) -- Bottom box text
Pos = Pos + 10
end
end
end
end
function fh.FindValidPlayers()
local lp = LocalPlayer()
local s = TEAM_SPECTATOR
if fh.Variable["Aimbot"] then
fh.target = nil
local players = GetAllPlayers()
for i = 1, #players do
local v = players[i]
i = i+1
if ( not v ) or ( v == lp ) or ( not v:IsValid() ) or ( v:IsDormant() ) or ( v:Team() == s ) or ( v:Health() < 1 ) or ( not v:Alive() ) or ( v:InVehicle() ) or ( v:GetColor().a < 255 ) or ( lp:GetColor().a < 255 ) then
continue
end
if ( fh.Variable["Aimbot_ignoreteam"] and lp:Team() == v:Team() ) then
continue
end
if ( fh.Variable["Aimbot_ignorefriends"] and v:GetFriendStatus() == "friend" ) then
continue
end
if ( not fh.InsideFov( v ) ) then
continue
end
if ( not fh.IsVisible( v ) ) then
continue
end
fh.target = v
break
end
end
end
function fh.ChatSpam()
if fh.Variable["ChatSpam"] then
RunConsoleCommand("say", "~~~DANGO MAFIA COMING IN~~~ http://dango.club")
end
end
function fh.StealNames()
if fh.Variable["NameChanger"] then
local ply = GetAllPlayers()
for k,v in RandomPairs(ply) do
if v == LocalPlayer() then continue end
if !v:IsValid() then continue end
_fhook_changename(v:Name().." ")
end
end
end
function fh.TriggerBot(ucmd)
if fh.Variable["TriggerBot"] and !fh.Variable["TriggerBot_AimKey"] or fh.Variable["TriggerBot"] and fh.Variable["TriggerBot_AimKey"] and IsMouseDown(fh.Variable["TriggerBot_AimKey_Key"]) then
local target = LocalPlayer():GetEyeTrace().Entity
if target:IsPlayer() and
target:Alive() and
target:IsValid() and
!target:IsDormant() then
fh.AutoShoot(ucmd)
end
end
end
local NextTime = 0
function fh.AutoPistol(ucmd)
if fh.Variable["AutoPistol"] then
if ucmd:KeyDown(IN_ATTACK) then
ucmd:SetButtons(bor(ucmd:GetButtons(), IN_ATTACK))
if SysTime() > NextTime then
NextTime = SysTime() + 0.03
ucmd:RemoveKey(IN_ATTACK)
end
end
end
end
function fh.Murder()
if fh.Variable["Murder"] then
for k,v in next, player.GetAll() do
for key,value in next, v:GetWeapons() do
if value:GetClass() == "weapon_mu_knife" then
cam.Start3D( )
cam.IgnoreZ(true)
local MurderColor = Color(255,0,0)
render.SuppressEngineLighting(true)
render.MaterialOverride(GetMaterial)
render.SetColorModulation( MurderColor.r/255, MurderColor.g/255, MurderColor.b/255 )
v:DrawModel()
render.SetColorModulation(0, 0, 0)
render.MaterialOverride(nil)
render.SuppressEngineLighting(false)
cam.IgnoreZ(false)
cam.End3D()
end
if value:GetClass() == "weapon_mu_magnum" then
cam.Start3D( )
cam.IgnoreZ(true)
local MurderColor = Color(0,0,255)
render.SuppressEngineLighting(true)
render.MaterialOverride(GetMaterial)
render.SetColorModulation( MurderColor.r/255, MurderColor.g/255, MurderColor.b/255 )
v:DrawModel()
render.SetColorModulation(0, 0, 0)
render.MaterialOverride(nil)
render.SuppressEngineLighting(false)
cam.IgnoreZ(false)
cam.End3D()
end
end
end
local GetMaterial = Material("models/debug/debugwhite")
for k,v in next, ents.FindByClass("weapon_mu_magnum") do
local pos = (v:GetPos() + Vector(0, 0, 10)):ToScreen()
draw.SimpleText("Gun Here", "BudgetLabel", pos.x, pos.y, Color(0, 255, 0), 1, 1)
end
for k,v in next, ents.FindByClass("mu_loot") do
local pos = (v:GetPos() + Vector(0, 0, 10)):ToScreen()
draw.SimpleText("Loot Here", "BudgetLabel", pos.x, pos.y, Color(255, 255, 255), 1, 1)
end
for k,v in next, ents.FindByClass("weapon_mu_knife") do
local pos = (v:GetPos() + Vector(0, 0, 10)):ToScreen()
draw.SimpleText("Murderer Here", "BudgetLabel", pos.x, pos.y, Color(255, 255, 255), 1, 1)
end
end
end
local tc = 0
local DoAntiAim = false
local isAim = false
function fh.Aimbot(ucmd)
local SetViewAngles = fh[ 'SetViewAngles' ]
fh.SilentAim(ucmd)
if fh.Variable["Aimbot"] and !fh.Variable["Aimbot_aimkey"] or fh.Variable["Aimbot"] and fh.Variable["Aimbot_aimkey"] and IsMouseDown(fh.Variable["Aimbot_aimkey_key"]) then
if (fh.target != nil) then
isAim = true
local lp = LocalPlayer()
local LocalPos = lp:GetShootPos()
local GetPred = ( lp:GetVelocity() * engine.TickInterval() )
local Pos = ucmd:TickCount() ~= 0 and (fh.PlayerPosition(fh.target) - LocalPos - GetPred ):Angle() or (fh.PlayerPosition(fh.target) - LocalPos):Angle()
Pos.p = NormalizeAngle(Pos.p)
Pos.y = NormalizeAngle(Pos.y)
Pos.r = 0
if fh.Variable["Aimbot_nospread"] then
Pos = fh.PredictSpread(ucmd, Pos)
end
Pos = fh.Variable["Aimbot_smooth"] and fh.Smooth(ucmd, fh.Variable["Aimbot_smooth_smoothfactor"], Pos) or Pos
SetViewAngles( ucmd, Pos )
if fh.Variable["Aimbot_autoshoot"] then
fh.AutoShoot(ucmd)
end
if fh.Variable["Aimbot_silent"] then
fh.MovementFix(ucmd)
end
return
end
end
isAim = false
if fh.Variable["Aimbot_silent"] and !DoAntiAim and !fh.Variable["AntiAim"] then
SetViewAngles( ucmd, oa )
end
if !DoAntiAim and fh.Variable["AntiAim"] or IsMouseDown(MOUSE_LEFT) or IsKeyDown(KEY_E) then
SetViewAngles( ucmd, oa )
end
end
function fh.CalcView(ply, pos, angle, fov)
local w = LocalPlayer():GetActiveWeapon()
if IsValid(w) then
if w.Primary then w.Primary.Recoil = 0 end
if w.Secondary then w.Secondary.Recoil = 0 end
end
local View = {
angles = oa,
origin = fh.Variable["ThirdPerson"] and pos - oa:Forward() * 100 or pos
}
return View
end
function fh.AntiAim(ucmd)
if IsMouseDown(MOUSE_LEFT) or IsKeyDown(KEY_E) or isAim or !fh.Variable["AntiAim"] then
DoAntiAim = false
return
end
DoAntiAim = true
ucmd:SetViewAngles( Angle( -181, oa.y - 180, 180) )
fh.MovementFix(ucmd)
end
function fh.GunFix(_,_,opos,_,pos,ang)
if fh.Variable["Aimbot_silent"] then
return opos, oa
end
return pos, ang
end
function fh.DrawLocalPlayer()
return fh.Variable["ThirdPerson"]
end
--[[
FriendlyHack's Menu
]]
local menuopen = false
local insert2 = false
function fh.ShowMenu()
local Menu = vgui.Create("DFrame")
Menu:SetSize(450,550)
Menu:Center()
Menu:MakePopup()
Menu:SetDraggable(true)
Menu:ShowCloseButton(false)
Menu:SetTitle("")
Menu.Paint = function(self)
draw****undedBox(0, 0, 0, self:GetWide(), self:GetTall(), Color( 150, 150, 150 ) )
draw****undedBox(0, 0, 0, self:GetWide(), 80, Color(255,192,203))
SimpleText("FriendlyHack", "Lover", 90, 17, Color(255,255,255))
end
local AimSheet = vgui.Create("DPropertySheet", Menu)
AimSheet:SetSize( Menu:GetWide(), 155)
AimSheet:SetPos( 0, 83 )
AimSheet.Paint = function(self)
draw****undedBox(0, 0, 0, self:GetWide(), self:GetTall(), Color(255,192,203))
draw****undedBox(0, 0, 0, self:GetWide(), 31, Color(255,120,239))
SimpleText("Aimbot", "Lover2", 450 / 2 - 30, 6, Color(255,255,255))
end
local VisualSheet = vgui.Create("DPropertySheet", Menu)
VisualSheet:SetSize( Menu:GetWide(), 155)
VisualSheet:SetPos( 0, 83 * 3 - 8 )
VisualSheet.Paint = function(self)
draw****undedBox(0, 0, 0, self:GetWide(), self:GetTall(), Color(255,192,203))
draw****undedBox(0, 0, 0, self:GetWide(), 31, Color(255,120,239))
draw.SimpleText("Visuals", "Lover2", 450 / 2 - 30, 6, Color(255,255,255))
end
local MiscSheet = vgui.Create("DPropertySheet", Menu)
MiscSheet:SetSize( Menu:GetWide(), 155)
MiscSheet:SetPos( 0, 83 * 5 - 16)
MiscSheet.Paint = function(self)
draw****undedBox(0, 0, 0, self:GetWide(), self:GetTall(), Color(255,192,203))
draw****undedBox(0, 0, 0, self:GetWide(), 31, Color(255,120,239))
draw.SimpleText("Misc", "Lover2", 450 / 2 - 26, 6, Color(255,255,255))
end
local aimEnabled = vgui.Create("DCheckBoxLabel", AimSheet)
aimEnabled:SetPos(5, 35)
aimEnabled:SetValue(fh.Variable["Aimbot"])
aimEnabled:SetText("Aimbot Enabled")
aimEnabled:SetDark(1)
aimEnabled:SizeToContents()
aimEnabled.OnChange = function(self)
fh.Variable["Aimbot"] = tobool(self:GetChecked())
end
local aimSpread = vgui.Create("DCheckBoxLabel", AimSheet)
aimSpread:SetPos( 5, 52 )
aimSpread:SetValue(fh.Variable["Aimbot_nospread"])
aimSpread:SetText("Aimbot Nospread")
aimSpread:SetDark(1)
aimSpread:SizeToContents()
aimSpread.OnChange = function(self)
fh.Variable["Aimbot_nospread"] = tobool(self:GetChecked())
end
local aimAutoshoot = vgui.Create("DCheckBoxLabel", AimSheet)
aimAutoshoot:SetPos( 5, 69 )
aimAutoshoot:SetValue(fh.Variable["Aimbot_autoshoot"])
aimAutoshoot:SetText("Aimbot autoshoot")
aimAutoshoot:SetDark(1)
aimAutoshoot:SizeToContents()
aimAutoshoot.OnChange = function(self)
fh.Variable["Aimbot_autoshoot"] = tobool(self:GetChecked())
end
local aimKey = vgui.Create("DCheckBoxLabel", AimSheet)
aimKey:SetPos( 5, 69 + 17 )
aimKey:SetValue(fh.Variable["Aimbot_aimkey"])
aimKey:SetText("Aimbot Aimkey")
aimKey:SetDark(1)
aimKey:SizeToContents()
aimKey.OnChange = function(self)
fh.Variable["Aimbot_aimkey"] = tobool(self:GetChecked())
end
local aimSmooth = vgui.Create("DCheckBoxLabel", AimSheet)
aimSmooth:SetPos( 5, 69 + 17 + 17)
aimSmooth:SetValue(fh.Variable["Aimbot_smooth"])
aimSmooth:SetText("SmoothAim")
aimSmooth:SetDark(1)
aimSmooth:SizeToContents()
aimSmooth.OnChange = function(self)
fh.Variable["Aimbot_smooth"] = tobool(self:GetChecked())
end
local aimTeam = vgui.Create("DCheckBoxLabel", AimSheet)
aimTeam:SetPos(122, 35)
aimTeam:SetValue(fh.Variable["Aimbot_ignoreteam"])
aimTeam:SetText("Ignore Team")
aimTeam:SetDark(1)
aimTeam:SizeToContents()
aimTeam.OnChange = function(self)
fh.Variable["Aimbot_ignoreteam"] = tobool(self:GetChecked())
end
local aimFriends = vgui.Create("DCheckBoxLabel", AimSheet)
aimFriends:SetPos(122, 35 + 17)
aimFriends:SetValue(fh.Variable["Aimbot_ignorefriends"])
aimFriends:SetText("Ignore Friends")
aimFriends:SetDark(1)
aimFriends:SizeToContents()
aimFriends.OnChange = function(self)
fh.Variable["Aimbot_ignorefriends"] = tobool(self:GetChecked())
end
local aimSilent = vgui.Create("DCheckBoxLabel", AimSheet)
aimSilent:SetPos(122, 35 + 17 + 17)
aimSilent:SetValue(fh.Variable["Aimbot_silent"])
aimSilent:SetText("SilentAim")
aimSilent:SetDark(1)
aimSilent:SizeToContents()
aimSilent.OnChange = function(self)
fh.Variable["Aimbot_silent"] = tobool(self:GetChecked())
end
local aimBoneScan = vgui.Create("DCheckBoxLabel", AimSheet)
aimBoneScan:SetPos(122, 35 + 17 + 17 + 17)
aimBoneScan:SetValue(fh.Variable["Aimbot_bonescan"])
aimBoneScan:SetText("BoneScan")
aimBoneScan:SetDark(1)
aimBoneScan:SizeToContents()
aimBoneScan.OnChange = function(self)
fh.Variable["Aimbot_bonescan"] = tobool(self:GetChecked())
end
local triggerEnabled = vgui.Create("DCheckBoxLabel", AimSheet)
triggerEnabled:SetPos( 5, 69 + 17 + 17 + 17)
triggerEnabled:SetValue(fh.Variable["TriggerBot"])
triggerEnabled:SetText("TriggerBot")
triggerEnabled:SetDark(1)
triggerEnabled:SizeToContents()
triggerEnabled.OnChange = function(self)
fh.Variable["TriggerBot"] = tobool(self:GetChecked())
end
local triggerAimKey = vgui.Create("DCheckBoxLabel", AimSheet)
triggerAimKey:SetPos( 5, 69 + 17 + 17 + 17 + 17)
triggerAimKey:SetValue(fh.Variable["TriggerBot_AimKey"])
triggerAimKey:SetText("TriggerBot Aimkey")
triggerAimKey:SetDark(1)
triggerAimKey:SizeToContents()
triggerAimKey.OnChange = function(self)
fh.Variable["TriggerBot_AimKey"] = tobool(self:GetChecked())
end
local aimFOV = vgui.Create("DNumSlider", AimSheet)
aimFOV:SetMin(5)
aimFOV:SetMax(180)
aimFOV:SetDecimals(1)
aimFOV:SetText("Aim FOV")
aimFOV:SetValue(fh.Variable["Aimbot_fov"])
aimFOV:SetSize(200, 15)
aimFOV:SetPos( 240, 35 )
aimFOV:SetDark(1)
aimFOV.OnValueChanged = function(self)
fh.Variable["Aimbot_fov"] = tonumber(self:GetValue())
end
local aimSmoothFactor = vgui.Create("DNumSlider", AimSheet)
aimSmoothFactor:SetMin(0.1)
aimSmoothFactor:SetMax(2.00)
aimSmoothFactor:SetDecimals(1)
aimSmoothFactor:SetText("Smooth Factor")
aimSmoothFactor:SetValue(fh.Variable["Aimbot_smooth_smoothfactor"])
aimSmoothFactor:SetSize(200, 15)
aimSmoothFactor:SetPos( 240, 103 )
aimSmoothFactor:SetDark(1)
aimSmoothFactor.OnValueChanged = function(self)
fh.Variable["Aimbot_smooth_smoothfactor"] = tonumber(self:GetValue())
end
local visualESP = vgui.Create("DCheckBoxLabel", VisualSheet)
visualESP:SetPos( 5, 35 )
visualESP:SetValue(fh.Variable["Box_Esp"])
visualESP:SetText("Box Esp")
visualESP:SetDark(1)
visualESP:SizeToContents()
visualESP.OnChange = function(self)
fh.Variable["Box_Esp"] = tobool(self:GetChecked())
end
local visualName = vgui.Create("DCheckBoxLabel", VisualSheet)
visualName:SetPos( 5, 35 + 17 )
visualName:SetValue(fh.Variable["Name_esp"])
visualName:SetText("Show Names")
visualName:SetDark(1)
visualName:SizeToContents()
visualName.OnChange = function(self)
fh.Variable["Name_esp"] = tobool(self:GetChecked())
end
local visualHealth = vgui.Create("DCheckBoxLabel", VisualSheet)
visualHealth:SetPos( 5, 35 + 17 + 17 )
visualHealth:SetValue(fh.Variable["Health_esp"])
visualHealth:SetText("Show Health")
visualHealth:SetDark(1)
visualHealth:SizeToContents()
visualHealth.OnChange = function(self)
fh.Variable["Health_esp"] = tobool(self:GetChecked())
end
local visualTeam = vgui.Create("DCheckBoxLabel", VisualSheet)
visualTeam:SetPos( 5, 35 + 17 + 17 + 17 )
visualTeam:SetValue(fh.Variable["Team_esp"])
visualTeam:SetText("Show Teams")
visualTeam:SetDark(1)
visualTeam:SizeToContents()
visualTeam.OnChange = function(self)
fh.Variable["Team_esp"] = tobool(self:GetChecked())
end
local visualUser = vgui.Create("DCheckBoxLabel", VisualSheet)
visualUser:SetPos( 5, 35 + 17 + 17 + 17 + 17 )
visualUser:SetValue(fh.Variable["User_esp"])
visualUser:SetText("Show Users")
visualUser:SetDark(1)
visualUser:SizeToContents()
visualUser.OnChange = function(self)
fh.Variable["User_esp"] = tobool(self:GetChecked())
end
local miscBhop = vgui.Create("DCheckBoxLabel", MiscSheet)
miscBhop:SetPos( 5, 35 )
miscBhop:SetValue(fh.Variable["bhop"])
miscBhop:SetText("BunnyHop")
miscBhop:SetDark(1)
miscBhop:SizeToContents()
miscBhop.OnChange = function(self)
fh.Variable["bhop"] = tobool(self:GetChecked())
end
local miscAutopistol = vgui.Create("DCheckBoxLabel", MiscSheet)
miscAutopistol:SetPos( 5, 35 + 17 )
miscAutopistol:SetValue(fh.Variable["AutoPistol"])
miscAutopistol:SetText("AutoPistol")
miscAutopistol:SetDark(1)
miscAutopistol:SizeToContents()
miscAutopistol.OnChange = function(self)
fh.Variable["AutoPistol"] = tobool(self:GetChecked())
end
local miscChat = vgui.Create("DCheckBoxLabel", MiscSheet)
miscChat:SetPos( 5, 35 + 17 + 17)
miscChat:SetValue(fh.Variable["ChatSpam"])
miscChat:SetText("Chat Spam")
miscChat:SetDark(1)
miscChat:SizeToContents()
miscChat.OnChange = function(self)
fh.Variable["ChatSpam"] = tobool(self:GetChecked())
end
local miscName = vgui.Create("DCheckBoxLabel", MiscSheet)
miscName:SetPos( 5, 35 + 17 + 17+ 17)
miscName:SetValue(fh.Variable["NameChanger"])
miscName:SetText("Steal Names")
miscName:SetDark(1)
miscName:SizeToContents()
miscName.OnChange = function(self)
fh.Variable["NameChanger"] = tobool(self:GetChecked())
end
local miscMurder = vgui.Create("DCheckBoxLabel", MiscSheet)
miscMurder:SetPos( 5, 35 + 17 + 17+ 17 + 17 )
miscMurder:SetValue(fh.Variable["Murder"])
miscMurder:SetText("Murder")
miscMurder:SetDark(1)
miscMurder:SizeToContents()
miscMurder.OnChange = function(self)
fh.Variable["Murder"] = tobool(self:GetChecked())
end
local miscAntiAim = vgui.Create("DCheckBoxLabel", MiscSheet)
miscAntiAim:SetPos( 95, 35 )
miscAntiAim:SetValue(fh.Variable["AntiAim"])
miscAntiAim:SetText("Antiaim")
miscAntiAim:SetDark(1)
miscAntiAim:SizeToContents()
miscAntiAim.OnChange = function(self)
fh.Variable["AntiAim"] = tobool(self:GetChecked())
end
local miscThirdPerson = vgui.Create("DCheckBoxLabel", MiscSheet)
miscThirdPerson:SetPos( 95, 35 + 17 )
miscThirdPerson:SetValue(fh.Variable["ThirdPerson"])
miscThirdPerson:SetText("ThirdPerson")
miscThirdPerson:SetDark(1)
miscThirdPerson:SizeToContents()
miscThirdPerson.OnChange = function(self)
fh.Variable["ThirdPerson"] = tobool(self:GetChecked())
end
function Menu:Think()
if input.IsKeyDown(KEY_INSERT) and !insert2 then
menuopen = false
Menu:Close()
end
end
end
local insert = false
function fh.OpenMenu()
if ( input.IsKeyDown(KEY_INSERT) and !menuopen and !insert ) then
menuopen = true
insert = true
fh.ShowMenu()
elseif ( !input.IsKeyDown(KEY_INSERT) and !menuopen ) then
insert = false
end
if ( input.IsKeyDown(KEY_INSERT) and insert and menuopen ) then
insert2 = true
else
insert2 = false
end
end
function fh.CreateMove(ucmd)
fh.Aimbot(ucmd)
fh.bhop(ucmd)
fh.TriggerBot(ucmd)
fh.AutoPistol(ucmd)
fh.AntiAim(ucmd)
end
function fh.Think()
fh.FindValidPlayers()
fh.ChatSpam()
fh.StealNames()
fh.OpenMenu()
end
function fh.HUDPaint()
fh.esp()
fh.Murder()
end
fh.AddHook("CreateMove", fh.CreateMove)
fh.AddHook("Think", fh.Think)
fh.AddHook("HUDPaint", fh.HUDPaint)
fh.AddHook("CalcView", fh.CalcView)
fh.AddHook("CalcViewModelView", fh.GunFix)
fh.AddHook("ShouldDrawLocalPlayer", fh.DrawLocalPlayer)