Jump to content

mp.game.weapon.unequipEmptyWeapons = false;


Recommended Posts

I'm currently trying to disable the autoswap weapon when the ammo's running out... but unfortunatly this line of code doesn't do anything. I tried searching for the native aswell, I found this. Both of this code doesn't work. I use only javascript, can anyone help me to disable that autoswap ?

Client side
const playerPed = mp.players.local.handle;
mp.game.invoke("0xA21C51255B205245", playerPed, false);

mp.game.weapon.unequipEmptyWeapons = false;
Link to comment
Share on other sites

mp.events.add("playerReady", () => {
    mp.game1.weapon.unequipEmptyWeapons = false;
    mp.game.weapon.unequipEmptyWeapons  = false;
});

Try this one
Link to comment
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...