InfoGarry's Mod Script Thread
If someone could tell me how to increase the beam length of the physgun via lua, I might give it a shot.
Anyone have any requests? I'm looking for something to do.
The more interesting the idea the better the chance ill do it.
The more interesting the idea the better the chance ill do it.
Took it from hera (or smth) and made it better a while ago.
Code:
CreateClientConVar("lenny_bunnyhop", 1, true, false)
function Bunnyhop()
if GetConVar("lenny_bunnyhop"):GetInt() == 1 then
if input.IsKeyDown(KEY_SPACE) then
if LocalPlayer():IsOnGround() then
RunConsoleCommand("+jump")
timer.Create("Bhop", 0, 0.01, function()
RunConsoleCommand("-jump")
end)
end
end
end
end
hook.Add("Think", "Hoppy", Bunnyhop )
local bhopoff
hook.Add("StartChat", "Bhpdisbaker", function()
if GetConVarNumber("lenny_bunnyhop") == 1 then
RunConsoleCommand("lenny_bunnyhop", 0)
bhopoff = true
else
bhopoff = false
end
end)
hook.Add("FinishChat", "bhpenabler", function()
if bhopoff then
RunConsoleCommand("lenny_bunnyhop", 1)
bhopoff = false
end
end)
I tried using the No Recoil and No Spread thing, but it's not working for me. I do have a Bypasser and I did make a lua folder and made the Notepad thing into a .lua file then put it in the lua folder. I am really clueless when it comes to lua stuff, but can anyone help me out? I did everything I needed to do then typed lua_openscript_cl recoil.lua and it said "Couldn't include file 'recoil.lua' (File not found) (<nowhere>)" in the console. Thank you in advance to anyone who can help and sorry for being such a pain!
lua_openscript_cl and then what ever you named it. If it's not named "recoil.lua", you won't find "recoil.lua".
Also make sure it's saved as a lua file, not just a text document named "soemthing.lua"
Anyone have an ATM code guesser? That goes down the line until it gets the right one?
Also make sure it's saved as a lua file, not just a text document named "soemthing.lua"
Anyone have an ATM code guesser? That goes down the line until it gets the right one?
So I like this thread idea, so here is a tracers from crosshair to player that I made
Code:
for k, e in pairs( player.GetAll() ) do
local x = ScrW() / 2;
local y = ScrH() / 2;
local pos = e:GetPos():ToScreen();
surface.SetDrawColor( 0, 255, 0, 255 );
surface.DrawLine(x, y, pos.x, pos.y)
end
end
It is named recoil.lua. I've used Hera before and when I typed lua_openscript_cl hera.lua, it worked perfectly fine. I'm really not sure what this is. I can take a screenshot of the folder.


When you open it (notepad, notepad++, something), what is the code inside of it
This is the code.
Code:
local function NoSpread()
if GetConVarNumber("Derp_no") == 1 and LocalPlayer().GetActiveWeapon != nil then
local wep = LocalPlayer():GetActiveWeapon()
if wep.data then
wep.data.Recoil = 0
wep.data.Cone = 0
wep.data.Spread = 0
end
if wep.Primary then
wep.Primary.Recoil = 0
wep.Primary.Cone = 0
wep.Primary.Spread = 0
end
end
end
hook.Add("Tick", "NoSpread", NoSpread)
CreateClientConVar( "Derp_no", 0, true, false)
An update to my entity finder. You can find the earlier version posted somewhere else in this thread.
http://i.imgur.com/pnnX6CS.jpg
Code: EF - Pastebin.com
(Posting there so the forums doesn't censor anything)
Oh, i should point out that if the maximum distance is 0 then its infinite. Open the menu with AEnt_Menu. Double click an item on either list to move it to the other list.
http://i.imgur.com/pnnX6CS.jpg
Code: EF - Pastebin.com
(Posting there so the forums doesn't censor anything)
Oh, i should point out that if the maximum distance is 0 then its infinite. Open the menu with AEnt_Menu. Double click an item on either list to move it to the other list.
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
