OSRS Plugin API
    Preparing search index...

    Enumeration ON_SUB_CHANGE

    Event id for changing the subinterface through an action like opening the sidebar. Calls the OnSubChangeCallback.

    -- Create a function
    local subChange = function()
    osrs.print("Changing the subinterface")
    end
    -- Subscribe to the function
    osrs.Events.subscribe(subChange, osrs.Events.ON_SUB_CHANGE)