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

Function

getPlayerHudComponentProperty

Returns a HUD component appearance property set with setPlayerHudComponentProperty.

Syntax

mixed getPlayerHudComponentProperty(player thePlayer, string component, string property)

Arguments

thePlayerplayer
The player.Different type in MTA:SA: string component
componentstring
The component, e.g. "radar".
propertystring
The property, e.g. "posX".Not in MTA:SA

Differences from MTA:SA

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

In MTA:SA

getPlayerHudComponentProperty(string component, string property)

Returns

The value or false.

Example

local x = getPlayerHudComponentProperty(player, "radar", "posX")

See also