GetPlayerHealth: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This function will tell you, how much health has the player. ==Syntax== <syntaxhighlight lang="C#" >int NAPI.Player.GetPlayerHealth(Client player);</syntaxhighlight> '''Requ...")
 
No edit summary
 
Line 2: Line 2:


==Syntax==
==Syntax==
<syntaxhighlight lang="C#" >int NAPI.Player.GetPlayerHealth(Client player);</syntaxhighlight>
<syntaxhighlight lang="C#" >int NAPI.Player.GetPlayerHealth(Player player);</syntaxhighlight>


'''Required Arguments'''
'''Required Arguments'''
*'''player:''' parameter input should be in '''Client''' type.
*'''player:''' parameter input should be in '''Player''' type.


'''NOTE:''' This function returns data in '''int''' type.
'''NOTE:''' This function returns data in '''int''' type.

Latest revision as of 21:49, 22 December 2022

This function will tell you, how much health has the player.

Syntax

int NAPI.Player.GetPlayerHealth(Player player);

Required Arguments

  • player: parameter input should be in Player type.

NOTE: This function returns data in int type.

Usage example(s)

Example Description

NAPI.Player.GetPlayerHealth(player);