SetPlayerHealth: Difference between revisions

From RAGE Multiplayer Wiki
(Fix small type mistake.)
(Use description of GTAN Wiki)
Line 1: Line 1:
Sets the health of a player.
This function sets a player health, to kill a player set their health to -1.


{{CSharpContainer|
{{CSharpContainer|

Revision as of 16:40, 12 December 2019

This function sets a player health, to kill a player set their health to -1.


C# Syntax

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

Parameters

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

Example

NAPI.Player.SetPlayerHealth(player, 100);