Garrys Mod TriggerBot
Decided to release this trigger bot i have made , this is my first time lua programming pls no hate!
VIRUS SCANS:
https://www.virustotal.com/en/file/f...is/1455840453/ⓘ
https://virusscan.jotti.org/en-US/fi...job/hfq6zka638ⓘ
local TriggerBot = CreateClientConVar( "triggerbot_enabled", 0, true, false )
hook.Add( "Think", "Triggerbot", function()
local Target = LocalPlayer():GetEyeTrace().Entity
if TriggerBot:GetInt() == 1 and LocalPlayer():Alive() and LocalPlayer():GetActiveWeapon():IsValid() and ( Target:IsPlayer() or Target:IsNPC() ) then
if !Firing then
RunConsoleCommand( "+attack" )
LocalPlayer():GetActiveWeapon().SetNextPrimaryFire( LocalPlayer():GetActiveWeapon() )
Firing = true
else
RunConsoleCommand( "-attack" )
Firing = false
end
end
end )
local setButtons = FindMetaTable( "CUserCmd" ).SetButtons local getButtons = FindMetaTable( "CUserCmd" ).GetButtons local getEyeTrace = FindMetaTable( "Player" ).GetEyeTrace local function triggerBot( userCmd ) local eyeTrace = getEyeTrace( LocalPlayer() ) if ( eyeTrace.Entity:IsPlayer() ) then setButtons( userCmd, bit.bor( getButtons( userCmd ), IN_ATTACK ) ) end end hook.Add( "CreateMove", "", triggerBot )