Перейти к содержанию

SetPlayerHealth

Материал из RAGE MP Wiki Archive

Sets the health of a player - if you use -1, the player will get killed.


void NAPI.Player.SetPlayerHealth(Player player, int health);

Parameters

  • player: Parameter input should be in Player type.
  • health: Parameter input should be in int type.

Example

<syntaxhighlight lang="csharp"> NAPI.Player.SetPlayerHealth(player, 100); </syntaxhighlight>