Lua:RemoveHudItem

From Fortress Forever Wiki
Jump to navigationJump to search


RemoveHudItem

Deletes an icon, text, or timer from a player's screen

Usage

RemoveHudItem( player, HUD_id )

Input

  • player(CFFPlayer) The player who is to be affected
  • HUD_id(string) the name of the HUD item to be removed. This is the same string that was used when the HUD item was created.

Output

Returns: nothing

Example

local player = CastToPlayer( player_entity )
RemoveHudItem( player, "mapoverlay" )