I did this, but an error appears on the first line, but I'm not sure what the problem is.
asked Feb 25 at 16:55
1 There are two mistakes:
If you want to determine whether button #11 is down:
answered Feb 25 at 18:05
Egor SkriptunoffEgor Skriptunoff 22.7k2 gold badges34 silver badges62 bronze badges 0 Next steps are to install our script Check your windows version. Press WindowsIcon+R and write winver. Choose the folder which is for your Windows version. Copy the script (Script folder) and paste it to a local drive. Now rename the file to world. Now open the file with notepad and change the nil value from the weapon you want to use to a mouse button number. After you have done the weapon assignment save the script and Copy the code line below: data = dofile[[D:\world.lua]] Open Logitech G-Hub as administrator and Click on "Profile" section (See picture below) Go the bottom left and click on "Scripting" For creating a new Lua Script account press the blue button. Delete all codes and paste the code line which we have copied. Now change the code line if you add the script to a different local drive letter. For example if you copy-paste the script local drive C: data = dofile[[C:\world.lua]] Same for the file name. If you give a different file name change it as well. (.lua is the file format do not delete it) Now save with ctrl+s Last step is to check that our profile is set as persistant. Go to Details of your profile and if not press the button to set it as Persistant. That's it! Enjoy! |