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

Function

resetPlayerHudComponentProperty

Restores a HUD component's default appearance (one property or all of them).

Syntax

bool resetPlayerHudComponentProperty(player thePlayer, string component [, string property = nil])

Arguments

thePlayerplayer
The player.Different type in MTA:SA: string component
componentstring
The component.
propertystring, optional = nil
The property; all when omitted.Not in MTA:SA

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

resetPlayerHudComponentProperty(string component, string property)

Returns

true on success.

Example

resetPlayerHudComponentProperty(player, "radar")

See also