alt.Player.local.maxHealth

Used to get the player's Maximum Health.

Syntax

readonly maxHealth: number;

Real World Example

const maxHealth = alt.Player.local.maxHealth;
console.log(`Your max health is: ${maxHealth}`);

alt.Player.local can also be a player instance from server

results matching ""

    No results matching ""