Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Steam Games Hacks & Cheats › PLAYERUNKNOWN'S BATTLEGROUNDS (PUBG) Hacks & Cheats › Logitech LUA script, no recoil with RAPID FIRE (HELP)

PostLogitech LUA script, no recoil with RAPID FIRE (HELP)

Posts 1–7 of 7 · Page 1 of 1
CR
crxismyfriend
Logitech LUA script, no recoil with RAPID FIRE (HELP)
So I use the followed script, it's the no recoil code that @asscold1 posted. I made 2 lines which are simulate the left click continuously. It's working now, but here is my problem:
Sometimes, the script stuck...the mouse moving down automatically and spamms the left button without I pressing the left mouse button. I have to stop the script and activate again if I wanna use it. What is the problem with this? I don't know why it's being stuck sometimes (its fully random).
Please help me find out the problem, or if anybody have a working no recoil with rapid fire script please publish.

The code:
Code:
function OnEvent(event, arg)
    OutputLogMessage("event = %s, arg = %d\n", event, arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    elseif event == "PROFILE_DEACTIVATED" then
        ReleaseMouseButton(2)  -- to prevent it from being stuck on
    end
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
        recoil = not recoil
        spot = not spot
    end
   if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
                --Sleep(35)
        if recoil then
		repeat
                MoveMouseRelative(0, 2)
			  PressMouseButton(1)
			  Sleep(7)
			  ReleaseMouseButton(1)
			  

            until not IsMouseButtonPressed(1)
			end

        end
    end
Thank you! Cheers
#1 · 8y ago
ET
EternalGamerz
so how do we use it ? just injected into Cheat Engine ?
#2 · 8y ago
CR
crxismyfriend
You can use this only if you have Logitech Gaming mouse. You can make your own mouse profile for PUBG and just paste this code to the scripting tab.
#3 · 8y ago
AS
asscold1
Because this two line you added are telling LMB to toggle/spam.
Code:
PressMouseButton(1),ReleaseMouseButton(1)
Try use this one, same as the old one. Press MB 5 to activate and deactivate.
Code:
function OnEvent(event, arg)
    OutputLogMessage("event = %s, arg = %d\n", event, arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    elseif event == "PROFILE_DEACTIVATED" then
        ReleaseMouseButton(2)  -- to prevent it from being stuck on
    end
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
        recoil = not recoil
        spot = not spot
    end
   if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
        if recoil then
            repeat
                --Sleep(35)
                Sleep(8)
                MoveMouseRelative(0, 2)

            until not IsMouseButtonPressed(1)
        end
    end
end
#4 · edited 8y ago · 8y ago
CR
crxismyfriend
Yeah I know, thats the thing. I want to spam LMB cuz I wanna combine the no recoil with rapid fire. But sometimes the spam didn't stop if I release the LMB.
#5 · 8y ago
CR
crxismyfriend
Anybody can help?
#6 · 8y ago
ST
stadtpirat
Hi,
make your own script... read my old post tu understand the bugs in LGS :-)
Hi,
well you only need 2 mice... a logitech mice and a normal for gaming.
Logitech has Lua support for Logitech and with mod for 3rd Party mice!!
You need Logitech Gaming Software in Englich!

From my old Thread and extended:
For Full Auto Weapon
J = Enemy Spotted
Spacebar= hold Breath
Hold to sight = ON
I use 900 and 450 dpi

With this scritpt you can:
- pressing Left Mousebutton: Hold Breath, Spotted Enemy, reduce DPI
- pressing Right Mousebutton: lower recoil

To activate press Mousewheel to the Leftside!

Source is from the Logitechforum :-)
Code:
local recoil = false local aim = false
 sleep_duration = 50
 MaxBreak = 1000
 TimeStamp = -MaxBreak-1    -- it's negative 2 seconds
 recoil_coords = {
     { x = -2, y = 5 },        
     { x = -2, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -5, y = 9 },        
     { x = -5, y = 9 },    
     { x = -5, y = 9 },        
     { x = -5, y = 9 },    
     { x = -5, y = 9 },        
     { x = -5, y = 9 },        
     { x = -5, y = 9 },        
     { x = -5, y = 9 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
 }
 recoil_count = # recoil_coords
 LastIndex = 1
 function OnEvent(event, arg)    
     if event == "PROFILE_ACTIVATED" then
         EnablePrimaryMouseButtonEvents(true)
     end
 

     
     if (event == "MOUSE_BUTTON_PRESSED" and arg == 11) then -- Press mouse button 11 to toggle recoil
         recoil = not recoil 
         if (recoil == false) then
             OutputLogMessage("RecoilScript turned OFF\n")
         else 
             OutputLogMessage("RecoilScript turned ON\n")
         end
 end
     
 

     if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) and recoil  then
                      
         if (GetRunningTime() - TimeStamp < MaxBreak) and (LastIndex <= recoil_count) then
             i = LastIndex
         else
             i = 1
         end
         while i <= recoil_count do
             Sleep(sleep_duration)
             if not IsMouseButtonPressed(1) then
                 LastIndex = i
                 TimeStamp = GetRunningTime()
                 break
             end
             MoveMouseRelative( recoil_coords[i].x, recoil_coords[i].y )
             if not IsMouseButtonPressed(1) then break end
             i = i + 1
         end
     end
 

         
 

     if event == "MOUSE_BUTTON_PRESSED" and arg == 2 and recoil then
           
         PressKey("Spacebar")
         PressAndReleaseKey("J") 
         PlayMacro("DPI Down")
         
       else
     
     if event == "MOUSE_BUTTON_RELEASED" and arg == 2 then
          
         ReleaseKey("Spacebar")
         PressAndReleaseKey("J") 
         PlayMacro("DPI Up")
     end
 end
 end
Warning!
This can be detect by Anti Cheat like AAO 2.5 Assist!
Rapid Key Fire Scripts are not good!!
For Bolt and Burst Weapon change:
Code:
local recoil = false

function OnEvent(event, arg)	
	if event == "PROFILE_ACTIVATED" then
		EnablePrimaryMouseButtonEvents(true)
	end

	
	if (event == "MOUSE_BUTTON_PRESSED" and arg == 11) then -- Press mouse button 11 to toggle recoil
		recoil = not recoil 
		if (recoil == false) then
			OutputLogMessage("RecoilScript turned OFF\n")
		else 
			OutputLogMessage("RecoilScript turned ON\n")
		end
end
	

	if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) and recoil  then
                if IsMouseButtonPressed(1) then 
repeat
PressKey("M")
Sleep(50)
ReleaseKey("M")
MoveMouseRelative(-2,3)
if not IsMouseButtonPressed(1) then break end
PressKey("M")
Sleep(50)
ReleaseKey("M")
MoveMouseRelative(-3,5)
if not IsMouseButtonPressed(1) then break end
PressKey("M")
Sleep(50)
ReleaseKey("M")
MoveMouseRelative(-4,6)
if not IsMouseButtonPressed(1) then break end
until not IsMouseButtonPressed(1) 
 end
end
if event == "MOUSE_BUTTON_PRESSED" and arg == 2 and recoil then
    		SetMouseDPITableIndex(1)
		PressKey("Spacebar")
		PressAndReleaseKey("J")
else
		if event == "MOUSE_BUTTON_RELEASED" and arg == 2 then
   		SetMouseDPITableIndex(2)
		ReleaseKey("Spacebar")
		PressAndReleaseKey("J")
		end
end
end
If you want use this script with a 3rd Party Mouse (Like Zowie) u need only this add at the end:
-->> gLua Setup - EDIT THE NEXT LINE(s)
dofile( [[C:\gLua.lua]] ) -- edit your filepath here!!!
EnableThirdPartyMouseEvents() -- will enable MB1-5
EnableMouseButton23Switch(true) -- Switch MB2 and 3 => 3rd party is like a G-Mouse

glua.lua you find at google :-)

and you need change this:
from 11 to 3
if (event == "MOUSE_BUTTON_PRESSED" and arg == 11) then
to
if (event == "MOUSE_BUTTON_PRESSED" and arg == 3) then

Button 11 = Mousewheel to the left side
Button 3 = Mousewheel Button
#7 · 8y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • Logitech lua-script no recoil bf4 ( AEK-971 - ACE 23 - Bulldog )By theycallmebigbrother in Battlefield 4 Hacks & Cheats
    22Last post 4y ago
  • Help with Rapid Fire Scripts?By uanaka in Call of Duty Modern Warfare 3 Help
    5Last post 14y ago
  • Deagle To Chrome G23 With Rapid FireBy eliteusername in Combat Arms Mods & Rez Modding
    13Last post 16y ago
  • Acr with rapid fire (thx to distinc)By chikencow in Combat Arms Mods & Rez Modding
    6Last post 16y ago
  • Hack with rapid fire mp7k and wall hackBy traggone in WarRock - International Hacks
    4Last post 19y ago

Tags for this Thread

None