OSRS Plugin API
    Preparing search index...

    Function getPlayerObj

    • Creates a LuaPlayer with the given Player ID.

      Parameters

      • id: number

        ID of the player.

      Returns Player

      A LuaPlayer based on the given ID.

      id = osrs.ClientOp.getPlayerIdByName("<EXAMPLE USER>")
      player = osrs.ClientOp.getPlayerObj(id)