PlayerSetHealth
Description
Health can go as high as you want, but it is only meant to go to double the max health (that extra health being from the kissing bonus). Unlike PedSetHealth, this function will not change the player's max health if health is set higher. By default, the player's max health is 200.
function PlayerSetHealth(health) --[[ ... ]] end
Parameters
health
:number
- The player's health value.
Return Values
None.
Example
Restore full player health.
PlayerSetHealth(PedGetMaxHealth(gPlayer))