SetPlayerHealth: Difference between revisions
(Use description of GTAN Wiki) |
(Rewrote the description) |
||
| Line 1: | Line 1: | ||
Sets the health of a player - if you use -1, the player will get killed. | |||
{{CSharpContainer| | {{CSharpContainer| | ||
Revision as of 16:52, 12 December 2019
Sets the health of a player - if you use -1, the player will get killed.
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);