Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:BarbershopResetFeatures

From RoR Wiki
Revision as of 19:40, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Appearance functions
Version: WAR 1.4.8

Resets the barbershop preview to the character's current appearance.

BarbershopResetFeatures()

Arguments

None.

Returns

Nothing.

Details

  • The client copies the player's stored appearance values back into the barbershop preview. This undoes all BarbershopSetFeature changes.
  • It then fires SystemData.Events.INTERACT_BARBERSHOP_FEATURE_UPDATE with the feature table, as BarbershopSetFeature does.
  • If there is no player, nothing happens. If the barbershop is not open, nothing is copied.

Errors

None.

Example

From ea_barbershopwindow/source/barbershopwindow.lua:

function BarbershopWindow.Reset()
    BarbershopResetFeatures()
end

See also