HEROofMAIDAN 22 Posted July 8, 2020 Share Posted July 8, 2020 (edited) How to disable auto aiming on a gamepad for all players? Edited July 8, 2020 by HEROofMAIDAN Link to post Share on other sites
HEROofMAIDAN 22 Posted August 4, 2020 Author Share Posted August 4, 2020 up Link to post Share on other sites
pichalomo 0 Posted August 4, 2020 Share Posted August 4, 2020 (edited) I create this script for my server to disable it. var whitelistWeapons = { "1": 2508868239, //bat "2": 1141786504, //Golf Club "3": 2725352035, //Fist "4": 3756226112, //Switchblade "5": 1317494643, //Hammer "6": 2484171525, //Poolcuee "7": 419712736, //Wrench "8": 3713923289, //Machete "9": 2460120199, //Dagger "10": 4192643659, //Bottle "11": 2343591895, //Flashlight "12": 4191993645, //Hatchet "13": 3638508604, //Knuckle "14": 2578778090, //Knife "15": 3756226112, //Switchblade "16": 1737195953, //Nightstick "17": 3441901897, //Battle Axe "18": 940833800 //Stone Hatchet }; mp.events.add('render', () => { if (Object.values(whitelistWeapons).includes(mp.players.local.weapon)) { mp.game.invoke('0x5C8B2F450EE4328E', mp.players.local.id, 1); } else { mp.game.invoke('0x5C8B2F450EE4328E', mp.players.local.id, 0); } }); Put in whitelistWeapons the weapons hashes that you would not like to disable controller autoaim (melee weapons recommended becouse this function disable mouse autoaim in melee fights) Edited August 4, 2020 by pichalomo Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now