Native referenceFiveM

SET_PLAYER_HEALTH_RECHARGE_MULTIPLIER

0x5DB660B38DD98A31 PLAYER
FUNCTION SIGNATURE
void SET_PLAYER_HEALTH_RECHARGE_MULTIPLIER(Player player, float regenRate);
Property Value
Native Name SET_PLAYER_HEALTH_RECHARGE_MULTIPLIER
Hash 0x5DB660B38DD98A31
Return Type void
Parameters player (Player), regenRate (float)

Description: This multiplier is reset to 1.0 every time the player ped is changed, often times via SET_PLAYER_MODEL or CHANGE_PLAYER_PED.

Parameters

  • player (Player) — The local player ID, see PLAYER_ID.
  • regenRate (float) — The recharge multiplier, this value needs to be a positive float value to work.

Examples

-- To disable the health recharge completely:
SetPlayerHealthRechargeMultiplier(PlayerId(), 0.0)

-- To reset it back to the normal recharge speed:
SetPlayerHealthRechargeMultiplier(PlayerId(), 1.0)
Back to PLAYER