## APIVersion: 100010 ## Title: My Addon ## Description: My first addon ## Author: Me ## Version: 1 MyAddon.lua
local function MyFunction(eventCode, addonName) if addonName == "MyAddon" then --here some code what you want to do for example: SelectPlayerStatus(PLAYER_STATUS_DO_NOT_DISTURB) end end EVENT_MANAGER:RegisterForEvent("MyAddon", EVENT_ADD_ON_LOADED, MyFunction)
IsInGamepadPreferredMode = function() return true end
Wait, overriding that function actually works now? I remember trying that a big ago and unfortunately it did nothing. Or do I have to do it while addons load?