SetPlayerHealthbarVisible

From GT-MP
Jump to: navigation, search
SetPlayerHealthbarVisible
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript


See also: GetPlayerHealthbarVisible

Sets the visiblity of the Healthbar.

Syntax

In C#
Server-Side Function

API.setPlayerHealthbarVisible(Client player, bool show);

Required Arguments

  • player: parameter input should be in Client type.
  • show: parameter input should be in bool type.

In Javascript
Client-Side Function

API.setPlayerHealthbarVisible(LocalHandle player, bool show);

Required Arguments

  • player: parameter input should be in LocalHandle type.
  • show: parameter input should be in bool type.

Usage example(s)

API.setPlayerHealthbarVisible(LocalHandle player, bool show);


References