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.
Parameters
Section titled “Parameters”object: Frame object or global frame name. originalParent: Parent to restore after vehicle exit.
Returns
Section titled “Returns”None.
Example
Section titled “Example”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