Jump to content
RAGE Multiplayer Community

Client-Side JS Functions Not Working


Shourya90
 Share

Recommended Posts

I don't know why These 2 functions are not working :

mp.game.player.disableVehicleRewards();

mp.game.player.setHealthRechargeMultiplier(0.0);

mp.events.add("playerReady", player => 
{
    
    mp.game.player.disableVehicleRewards();
    mp.game.player.setHealthRechargeMultiplier(0.0);

});

Rage 1.1

Edited by Shourya90
Link to comment
Share on other sites

  • 1 month later...

Probably events aren't called as post above said.

Try to put this inside any client-side script, no need to put it in event.

const localPlayer = mp.players.local;

localPlayer.disableVehicleRewards();
localPlayer.setHealthRechargeMultiplier(0.0);

 

 

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
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...