ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getHudComponentNames

Function

getHudComponentNames

ServerPlayersTrilogy Hub only

Returns the names of game HUD components that can be hidden separately: ammo, armour (or armor), breath, clock, health, money, weapon, wanted, area_name, vehicle_name, radio, radar, all.

Syntax

table getHudComponentNames()

Returns

A table of names.

Example

for _, name in ipairs(getHudComponentNames()) do
    outputServerLog(name)
end

See also