OSRS Plugin API
    Preparing search index...

    Function addRenderOffset

    • Adds a render offset to a given IfGroup. This allows top-level interfaces to be re-positioned on screen.

      Parameters

      • groupId: number

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

      • offset: Vector2

        The offset in screen coordinates. Applying an offset of [0,-100] will move the group up 100 pixels.

      Returns boolean

      true if the operation was successful (can fail if the interface is not rendering).

      osrs.IfType.addRenderOffset(osrs.gamevals.iftypes["chatbox"].id, osrs.Vector2.new(0,-100))