ResetPlayerHudComponentProperty

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22868:
This function resets the specified property to its default value.

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