OutdatedWeapon Duping Exploit (/sleep)

Posts 115 of 16 · Page 1 of 2
Weapon Duping Exploit (/sleep)
Just a simple weapon dupe for servers that have /sleep, timers work for me if they don't for you go to line 38+ and edit them there. It also includes an entity aimbot so if you want to automate this you can just let it run.

This was designed to work with the scriptfodder inventory mod, script 54.

Installation guide:
Put the code into a .lua file and name it dropscript.lua
Put the file in C:\Program Files (x86)\Steam\SteamApps\common\GarrysMod\garrysmod\l ua" or where ever your \lua file is.
Bypass sv_allowcslua 1
Open console (`) lua_openscript_cl dropscript.lua
Bind <key> "drop"

Code:
-- Made by Promptitude
local function weaponAimbot()
	for k, v in pairs(ents.GetAll()) do
		if IsValid(v) && string.find(v:GetClass(), "spawned_weapon") && v:GetPos():DistToSqr(LocalPlayer():GetPos()) < 5625 then
		LocalPlayer():SetEyeAngles((v:GetPos() - LocalPlayer():GetShootPos()):Angle())
			timer.Simple(0.1, function() RunConsoleCommand("+forward") end)
			timer.Simple(0.3, function() RunConsoleCommand("-forward") end)
			timer.Simple(0.5, function() RunConsoleCommand("slot2") end)
			timer.Simple(0.5, function() RunConsoleCommand("slot2") end)
			timer.Simple(0.5, function() RunConsoleCommand("slot2") end)
			timer.Simple(0.6, function() RunConsoleCommand("+attack") end)
			timer.Simple(0.7, function() RunConsoleCommand("-attack") end)
			timer.Simple(0.8, function() LocalPlayer():SetEyeAngles((v:GetPos() - LocalPlayer():GetShootPos()):Angle()) end)
			timer.Simple(0.9, function() RunConsoleCommand("+attack") end)
			timer.Simple(1, function() RunConsoleCommand("-attack") end)
		end
	end
end

local function slotSelector()
timer.Simple(0.1, function() RunConsoleCommand("slot2") end)
timer.Simple(0.2, function() RunConsoleCommand("slot2") end)
timer.Simple(0.3, function() RunConsoleCommand("slot2") end)
timer.Simple(0.4, function() RunConsoleCommand("slot4") end)
timer.Simple(0.5, function() RunConsoleCommand("+attack") end)
timer.Simple(0.6, function() RunConsoleCommand("-attack") end)
end

local function resetScript()
timer.Simple(0.1, function() RunConsoleCommand("slot1") end)
timer.Simple(0.2, function() RunConsoleCommand("+attack") end)
timer.Simple(0.3, function() RunConsoleCommand("-attack") end)
end

concommand.Add("dupe", function()
	sound.Play("Grenade.Blip", LocalPlayer():GetPos(), 75, 100, 1)
	chat.AddText(Color(255,0,0),"Duping Script Enabled.")
		slotSelector()
		timer.Simple(0.91, function() RunConsoleCommand("say", "/drop") end) -- 	Change the timing on the lines below this.
		timer.Simple(1.9, function() RunConsoleCommand("say","/sleep") end)
		timer.Simple(7.5, function() RunConsoleCommand("say","/sleep") end)
		timer.Simple(8.5, weaponAimbot)
		timer.Simple(10, resetScript)
end)
If you're going to copy and paste this into your own code at least don't remove the credit.
kek I already made this in 2 lines about 5 months ago
2 line : timer.Simple( 0.4744, function() RunConsoleCommand("say","/drop" .. " ") end )
timer.Simple( 1.4135, function() RunConsoleCommand("say","/sleep" .. " ") end )

with concommand
function dupes()
timer.Simple( 0.4744, function() RunConsoleCommand("say","/drop" .. " ") end )
timer.Simple( 1.4135, function() RunConsoleCommand("say","/sleep" .. " ") end )
end

concommand.Add("dupe", dupes)
Quote Originally Posted by Keepo123 View Post
kek I already made this in 2 lines about 5 months ago
2 line : timer.Simple( 0.4744, function() RunConsoleCommand("say","/drop" .. " ") end )
timer.Simple( 1.4135, function() RunConsoleCommand("say","/sleep" .. " ") end )

with concommand
function dupes()
timer.Simple( 0.4744, function() RunConsoleCommand("say","/drop" .. " ") end )
timer.Simple( 1.4135, function() RunConsoleCommand("say","/sleep" .. " ") end )
end

concommand.Add("dupe", dupes)
Yeah I saw your post and thought I'd post mine as well.
Im sorry if this sounds stupid to you guys but can i get banned by anti cheat from servers with this?

- - - Updated - - -

I want to try
Quote Originally Posted by P3rf3cTChA0S View Post
Im sorry if this sounds stupid to you guys but can i get banned by anti cheat from servers with this?

- - - Updated - - -

I want to try
You shouldn't really be able to run it if they have an anticheat. Usually if they do they know how to set sv_allowcslua to 0. type Datapack_paths in console and see if it returns anything with cac in the name.
Quote Originally Posted by Keepo123 View Post
kek I already made this in 2 lines about 5 months ago
2 line : timer.Simple( 0.4744, function() RunConsoleCommand("say","/drop" .. " ") end )
timer.Simple( 1.4135, function() RunConsoleCommand("say","/sleep" .. " ") end )

with concommand
function dupes()
timer.Simple( 0.4744, function() RunConsoleCommand("say","/drop" .. " ") end )
timer.Simple( 1.4135, function() RunConsoleCommand("say","/sleep" .. " ") end )
end

concommand.Add("dupe", dupes)
Why the .. " ") dude. do it correctly ffs.

Code:
concommand.Add("dupe", function()
timer.Simple(0.4, function() RunConsoleCommand("say", "/drop"); end) // removing the spergy timer decimals cus pointless
timer.Simple(1.4, function() RunConsoleCommand("say", "/sleep); end)
end)
@Keepo123 why cant do you things correctly ?
Is it possible to add a delay to /sleep through binding some how?

eg. bind l "say /sleep";wait 2.0; say /sleep;"

??
Quote Originally Posted by hottt View Post
Is it possible to add a delay to /sleep through binding some how?

eg. bind l "say /sleep";wait 2.0; say /sleep;"

??
no...
/2short
Quote Originally Posted by hottt View Post
Is it possible to add a delay to /sleep through binding some how?

eg. bind l "say /sleep";wait 2.0; say /sleep;"

??
You can't bind it through console, you could just some macro to press it after a certain delay but it takes around 8 seconds to unsleep.
Quote Originally Posted by Promptitude View Post
You can't bind it through console, you could just some macro to press it after a certain delay but it takes around 8 seconds to unsleep.
could you make a macro with autohotkey?
Quote Originally Posted by P3rf3cTChA0S View Post
could you make a macro with autohotkey?
Yes, just google it, not too hard. Bind /sleep and /drop to certain keys and it'll do the same as this without the weapon aimbot.
Quote Originally Posted by Promptitude View Post
You shouldn't really be able to run it if they have an anticheat. Usually if they do they know how to set sv_allowcslua to 0. type Datapack_paths in console and see if it returns anything with cac in the name.
also "addons/cac/lua/" showed up

- - - Updated - - -

Quote Originally Posted by Promptitude View Post
Yes, just google it, not too hard. Bind /sleep and /drop to certain keys and it'll do the same as this without the weapon aimbot.
Im not too good with making things :/ could you make one really quick cause im not sure how i would approach it.
bind l "say /drop"
bind k "say /sleep"

press l then wait 1 second, then press k
Quote Originally Posted by p100 body shot View Post
bind l "say /drop"
bind k "say /sleep"

press l then wait 1 second, then press k
Wow it actually worked.. Thank you so much! You're an awesome person thanks for the help!
Now i just gotta find the right amount of time to wait.
Posts 115 of 16 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?