View Single Post
08-27-21, 01:36 PM   #2
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
Hi and welcome!

You could try executing your code after PLAYER_LOGIN like this:

Lua Code:
  1. local startupFrame = CreateFrame("Frame")
  2. startupFrame:RegisterEvent("PLAYER_LOGIN")
  3. startupFrame:SetScript("OnEvent", function()
  4.   -- Your code here.
  5. end)
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote