Skip to content

Register Object For Vehicle Lock

Compatibility

Registers an unprotected addon frame to be hidden while the player is in a vehicle UI.

NamespaceEModuleCoreLifecyclestable
E:RegisterObjectForVehicleLock(object, originalParent)

Registers an unprotected addon frame to be hidden while the player is in a vehicle UI.

object: Frame object or global frame name. originalParent: Parent to restore after vehicle exit.

None.

E:RegisterObjectForVehicleLock(MyAddonFrame, UIParent)

Useful for addon frames that conflict with vehicle UI while following ElvUI’s combat-safe constraints.

Source: ElvUI/Game/Shared/General/API.lua:955