- Documentation
- Server functions
- 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
setPlayerHudComponentPropertyStores a HUD component's appearance: one property or a whole table. Properties:posX,posY,size,fillColor,fillColorSecondary,textColor,alignment,drawBlackBorder,drawPercentage,blinkingTimeLimit,textOutline,textShadow,useFontTexture.resetPlayerHudComponentPropertyRestores a HUD component's default appearance (one property or all of them).