- Documentation
- Server functions
- 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
getPlayerHudComponentPropertyReturns a HUD component appearance property set withsetPlayerHudComponentProperty.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.