Need Some Lua Help
hey i need some help to make this bit of code to be able to be turned on or off in console
for ex: "Yukon_speed 1" or "Yukon_speed 0"
here's the code:
THANKS!!
for ex: "Yukon_speed 1" or "Yukon_speed 0"
here's the code:
Code:
require("speed")
local ShouldSpeed = input.IsShiftDown
local function Speedhack()
if ShouldSpeed() then
SetSpeed(3) -- Increment for faster speed.
else
SetSpeed(0)
end
end
hook.Add("CreateMove", "SpeedHack", Speedhack)