Hello People.
I got a Script in Lua but it dont works anymore with GHub. The Script was a Universal Script for Pubg with Single Shot Rapidfire and in % to Increase and Decrease with + and - the Strength for Recoil + was 10 more norecoil ....maybe there is someone to help me to make it work?
local NR_ProMacro_activated = 3
local minus = 4 local plus = 5
local sensitivity_global = 50 local sensitivity_vertical = 1.00
function OnEvent(event, arg) if (event == "PROFILE_ACTIVATED") then EnablePrimaryMouseButtonEvents(true); click = 0 elseif event == "PROFILE_DEACTIVATED" then ReleaseMouseButton(2) end if (event == "MOUSE_BUTTON_PRESSED" and arg == NR_ProMacro_activated) then recoil = not recoil if (recoil == false) then OutputLogMessage("OFF-Recoil\n") OutputLCDMessage("OFF-Recoil") else OutputLogMessage("NR_ProMacro-Recoil\n") OutputLCDMessage("NR_ProMacro-Recoil") end PressAndReleaseKey("scrolllock") step_recoil = 5 * 50 / sensitivity_global / sensitivity_vertical end if (event == "MOUSE_BUTTON_PRESSED" and arg == plus) then step_recoil = step_recoil * 1.18 OutputLogMessage("Plus\n") OutputLCDMessage("Plus") end if (event == "MOUSE_BUTTON_PRESSED" and arg == minus) then if step_recoil > 1 then step_recoil = step_recoil / 1.18 OutputLogMessage("Minus\n") OutputLCDMessage("Minus") end end if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then click = 1 Click() end if (event == "M_RELEASED" and arg == 3) then Click() end if (event == "MOUSE_BUTTON_RELEASED" and arg == 1) then Stopclick() end end function Click() Sleep(19) MoveMouseRelative(0, step_recoil) if click == 0 then Stopclick() elseif click == 1 then SetMKeyState(3) else Stopclick() end end function Stopclick() click = 0 end
Ghub detect it but the mouse goes not down and no reaction when i click + or -.
Greetz






