OSRS Plugin API
    Preparing search index...

    Function retrieveIfGroup

    • Function that retrieves a whole interface (IfGroup), which is a set of static components with a common render position. For example, things like the chatbox and inventory are IfGroups.

      Parameters

      • groupId: number

        the id of the IfGroup to retrieve. Available in osrs.gamevals.iftypes.

      Returns IfGroup

      local ifgroup = osrs.IfType.retrieveIfGroup(osrs.gamevals.iftypes["chatbox"].id)
      osrs.printf("chatbox has %i static components", #ifgroup.components)