> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markz3d.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetLaundromatStats

Returns the stats table for a single laundromat.

<div class="rounded-lg">
  <table class="w-full rounded-lg text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
    <thead class="thead text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
      <tr>
        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Argument
        </th>

        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Data Type
        </th>

        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Needed
        </th>

        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Default
        </th>

        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Description
        </th>
      </tr>
    </thead>

    <tbody>
      <tr class="body-item not-prose body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
        <th class="px-6 py-4">`cfg_id`</th>
        <td class="px-6 py-4">number</td>
        <td class="px-6 py-4">✅</td>
        <td class="px-6 py-4">`-`</td>
        <td class="px-6 py-4">The index in the `Config.Laundromats` table</td>
      </tr>
    </tbody>
  </table>
</div>

<Accordion title="Returns" className="w-full">
  <div class="rounded-lg overflow-hidden">
    <table class="not-prose w-full rounded-lg text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
      <thead class="thead text-xs border-b border-[1px] text-gray-800 uppercase bg-gray-50 dark:bg-gray-700 dark:text-white">
        <tr>
          <th scope="col" class="px-6 py-3 whitespace-nowrap">
            Type
          </th>

          <th scope="col" class="px-6 py-3 whitespace-nowrap">
            Description
          </th>
        </tr>
      </thead>

      <tbody>
        <tr class="body-item body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
          <td class="px-6 py-4">table | nil</td>

          <td class="px-6 py-4">
            `nil` if the laundromat isn't currently spawned or `cfg_id` is
            unknown, otherwise a stats table containing:

            <ul>
              <li>`revenue_hr` (number) - Current income per hour</li>
              <li>`max_revenue_hr` (number) - Max achievable income per hour with all upgrades</li>
              <li>`total_revenue` (number) - Lifetime revenue generated</li>
              <li>`wash_hr_perc` (number) - Current washable percentage per hour</li>
              <li>`total_washed` (number) - Lifetime amount washed</li>
            </ul>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</Accordion>

<Accordion title="Example" className="w-full">
  ```lua theme={null}
  local stats = exports["mxc_moneywash"]:GetLaundromatStats(1)

  if stats then
      print("Laundromat 1 has generated", stats.total_revenue, "total revenue")
  end
  ```
</Accordion>
