Player::setHealthRechargeMultiplier

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

NOTICE: After changing the local model (mp.players.local.model), this function must be called again This function has to be called once per render.

Syntax

mp.game.player.setHealthRechargeMultiplier(regenRate);

Required Arguments

  • regenRate: float

Return value

  • Undefined

Example

Client-Side
mp.events.add('render', () => {

    // remove health regeneration
    mp.game.player.setHealthRechargeMultiplier(0.0);

    // set health regeneration to default
    mp.game.player.setHealthRechargeMultiplier(1.0);

});

See also