Jump to content
RAGE Multiplayer Community

Recommended Posts

  • 4 weeks later...

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 by pichalomo
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...