Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

ToggleHUDComponentForPlayer

GtakillerIV edited this page Dec 5, 2014 · 2 revisions

ToggleHUDComponentForPlayer

Shows or hides a HUD(heads-up display) component for a player.


Parameters

playerid

The player's id.

componentid

The HUD Component ID.

bool:toggle

Whether to show it or not.

Can be true or false.

Returns

    0 if the player is not connected

Usage

public OnPlayerSpawn(playerid)
{
	//Hide the minimap for the player
	ToggleHUDComponentForPlayer(playerid, HUD_COMPONENT_MINIMAP, false);
}

See also

IsPlayerInPauseMenu

TogglePlayerFrozen

TogglePlayerSwitchReload

Clone this wiki locally