OSRS Plugin API
    Preparing search index...

    Function playerName

    • Gets the name of the player specified by the id

      Parameters

      • playerId: number

        the id of the player to read

      Returns string

      the name of the player specified by the id.

      wasFound, playerId = osrs.ClientOp.playerFindSelf();
      osrs.print("The current player's name is " .. osrs.ClientOp.playerName(playerId));