HELP ME PLZ .LUA
SO i have a code
concommand.Remove("+bhop")
concommand.Add("+bhop",function()
local ply = LocalPlayer()
local oldeyeang = ply:EyeAngles()
hook.Add("CreateMove","hape",function(cmd)
local neweyeang = ply:EyeAngles()
if neweyeang.y > oldeyeang.y then
oldeyeang = neweyeang
RunConsoleCommand("+moveleft")
RunConsoleCommand("-moveright")
timer.Simple(.01, function() RunConsoleCommand("-moveleft") end)
end
if oldeyeang.y > neweyeang.y then
oldeyeang = neweyeang
RunConsoleCommand("+moveright")
RunConsoleCommand("-moveleft")
timer.Simple(.01, function() RunConsoleCommand("-moveright") end)
end
end)
end)
concommand.Remove("-hemp")
concommand.Add("-hemp",function()
RunConsoleCommand("-moveleft")
RunConsoleCommand("-moveright")
hook.Remove("CreateMove","hape")
end)
I need to make a on off button and i dont know how i want to be able to press the mouse scroll wheel down and turn it on and off with that button can someone recode in lua and send me it?
I think he's asking how to turn of the +bhop command.
Snowycold, as you mention, someone will have to recode the lua to add a -bhop command.
I am new to lua, so please correct me if I am wrong.
Once you get your new lua script (if you do) type this into console;
bind mwheelup -bhop
bind mwheeldown +bhop
If you scroll your mouse down, it'll activate the script. Scroll it up, and it'll stop the bhop script.
Ah, thanks. I am new to lua coding. Though could you explain the hemp part?