ResetPlayerHudComponentProperty: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|22868|This function resets the specified property to its default value.}} ==Syntax== <syntaxhighlight lang="lua"> bool resetPlayerHudComponentProperty (string component, string property) </syntaxhighlight> {{OOP||player:getHudComponentProperty||setPlayerHudComponentProperty}} ===Required Arguments=== *'''component:''' The component whose property you want to reset. See HUD Components. *'''property:'...") |
(No difference)
|
Latest revision as of 19:33, 31 December 2024
Syntax
bool resetPlayerHudComponentProperty (string component, string property)
OOP Syntax Help! I don't understand this!
- Method: player:getHudComponentProperty(...)
- Counterpart: setPlayerHudComponentProperty
Required Arguments
- component: The component whose property you want to reset. See HUD Components.
- property: The name of the property you want to reset. See HUD Properties.
Returns
Returns true if successful, false otherwise.
Example
resetPlayerHudComponentProperty('clock', 'fillColor')
It’s also possible to use all to reset all properties of a specific component or all properties of all components (the entire HUD).
resetPlayerHudComponentProperty("all", "all") -- resets entire hud resetPlayerHudComponentProperty("money", "all") -- resets all properties for money component
See Also
- getLocalPlayer
- getPlayerMapBoundingBox
- getPlayerMapOpacity
- isPlayerMapVisible
- isPlayerHudComponentVisible
- resetBlurLevel
- Shared
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState