Client exports


HUD & Microphone Exports

These exports allow other resources to fully control the visibility of the HUD and the microphone mute state on the UI side.


HUD Visibility Exports

These exports completely hide or show the NUI HUD.

When the HUD is disabled:

  • ALL HUD elements are hidden (display: none)

  • This includes the panel, crosshair, speedometers, and every HUD component

DisableHud

Fully disables the HUD.

exports['pinkFrog_hud']:DisableHud()

EnableHud

Fully enables the HUD.

exports['pinkFrog_hud']:EnableHud()

SetHudEnabled

Enables or disables the HUD based on the provided boolean value.


Microphone State Exports (UI Only)

These exports control the microphone mute indicator in the HUD UI only. They do not mute the player’s voice in pma-voice or any other voice system.

When muted:

  • The microphone icon turns red

  • A red slash overlay is displayed (as if the player is muted)

This can be useful for integrating with custom mute or moderation systems.

MuteMic

Marks the microphone as muted in the HUD.

UnmuteMic

Marks the microphone as unmuted in the HUD.

SetMicMuted

Sets the microphone mute state based on the provided boolean value.


Last updated