lSpeed - lua speedhack
#continuethecvar3speedhacks
ConVars:
lspeed *speed* (up to 20)
liteSpeed Bulky:
liteSpeed Lite (R):
ConVars:
lspeed *speed* (up to 20)
liteSpeed Bulky:
Code:
local lspd = {"litespeed", "cvar3"} // get the joke?
lspd.cspd = "no"
lspd.cv = CreateClientConVar("lspeed", 1, true, false)
function lspd.req(mod)
if file.Exists("lua/bin/" .. mod, "GAME") then
require(mod)
lspd.cspd = "yes"
chat.AddText(Color(255, 0, 0), "[liteSpeed] Found " .. mod)
else
lspd.cspd = "no"
chat.AddText(Color(255, 0, 0), "[liteSpeed] " .. mod .. " doesn't exist! Try placing it in your lua/bin folder!")
end
end
lspd.req(lspd[2])
timer.Simple(2, function()
if lspd.cspd == "yes" then
hook.Add("Think", "thinkingatthespeedoflite", function()
if GetConVarNumber("lspeed") > 0 and GetConVarNumber("lspeed") < 20 and GetConVarNumber("lspeed") != 1 then
GetConVar("sv_cheats"):SetValue(1)
GetConVar("host_timescale"):SetValue(GetConVarNumber("lspeed"))
else
GetConVar("sv_cheats"):SetValue(0)
GetConVar("host_timescale"):SetValue(1)
end
end )
chat.AddText(Color(255, 0, 0), "[liteSpeed] Loaded successfully! Change your speed with the lspeed cvar!")
else
hook.Remove("Think", "thinkingatthespeedoflite")
chat.AddText(Color(255, 0, 0), "[liteSpeed] Failed to load! Exiting.")
end
end )
Code:
require("cvar3")
local ls_cvar = CreateClientConVar("lspeed", 1, true, false)
hook.Add("Think", "thinkingatthespeedoflite", function() if GetConVarNumber("lspeed") > 0 and GetConVarNumber("lspeed") > 20 and GetConVarNumber("lspeed") != 1 then GetConVar("sv_cheats"):SetValue(1) GetConVar("host_timescale"):SetValue(GetConVarNumber("lspeed")) else GetConVar("sv_cheats"):SetValue(0) GetConVar("host_timescale"):SetValue(1) end end )
