InfoGarry's Mod Script Thread
I know how to:
Delete other peoples Props
Crash Server in 1 click
Get doors stuck forever in 1 click
Kill people with a money printer or shipment instantly
I'm not sure why I'm sharing this!!
add me on steam: oversizedpeanut
Delete other peoples Props
Crash Server in 1 click
Get doors stuck forever in 1 click
Kill people with a money printer or shipment instantly
I'm not sure why I'm sharing this!!
add me on steam: oversizedpeanut
Entity aimbot
Can anyone make an aimbot that can aim at an entity that's not a player? For example one that can aim at "spawned_weapon" entity. I want this so i can steal weapons from people in darkrp when they try to inventory it.
I think he meant one of two things, noclip pickup.
Or he meant aimbot for defined entities, such as the one described above, aiming at the center of the object so that he can run and pick something up instead of manually looking at it, increasing his chances of stealing something in a server before someone else actually get the chance to pick it up.
Maybe both.
Or he meant aimbot for defined entities, such as the one described above, aiming at the center of the object so that he can run and pick something up instead of manually looking at it, increasing his chances of stealing something in a server before someone else actually get the chance to pick it up.
Maybe both.
I don't see anyone posting this so...
Snap lines
Code:
hook.Add( "HUDPaint", "SnapLines", function()
for k,v in pairs ( player.GetAll() ) do
local Name = ""
if v == LocalPlayer() then Name = "" else Name = v:Name() end
local t = util.GetPlayerTrace(LocalPlayer())
local tr = util.TraceLine(t)
cam.Start3D(EyePos(), EyeAngles())
render.SetMaterial(Material("sprites/bluelaser1"))
render.DrawBeam(LocalPlayer():GetPos(), v:GetPos(), 4, 0, 12.5, Color(255, 0, 0, 255))
cam.End3D()
end
end )
For that person wanting the script that only pressed when you held a key, I made it myself:
Change KEY_LALT to whatever key you want.
You can find them here
http://wiki.garrysmod.com/page/Enums/KEY
Code:
Hkrs.Commands = {}
Hkrs.Commands.Aimbot = false
hook.Add("Think", "FishBoxer", function()
if input.IsKeyDown(KEY_LALT) then
Hkrs.Commands.Aimbot = true
elseif !input.IsKeyDown(KEY_LALT) then
Hkrs.Commands.Aimbot = false
end
end )
hook.Add("Think","randomfunctionsourshitdoesntdetectme", function()
if Hkrs.Commands.Aimbot then
// put aimbot code here
end
end )
You can find them here
http://wiki.garrysmod.com/page/Enums/KEY
Similar Threads
Hack RequestsGarry's Mod Lua script that shoots the weapon when aiming to someones head.
2 Garry's Mod Discussions & HelpGarry's Mod scripting - HUDPaint not called?
7 C++/C ProgrammingC++ Script Help - Garry's Mod - Forcing r_drawothermodels 2
3 ExploitsGarry's Mod 11 DarkRP RCON ExploitAG 3 GeneralGarry's Mod Meatspin
8
