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

# Exports

## Server Side

### getStage

> ใช้สำหรับดึงข้อมูลเวทีของผู้เล่น

<Tabs>
  <Tab title="Usage">
    ```lua theme={null}
    exports['Godji.Busking']:getStage(playerId)
    ```
  </Tab>

  <Tab title="Example">
    ```lua theme={null}
    RegisterCommand('getStage', function(_, args)
    	local stage = exports['Godji.Busking']:getStage(args[1])
    	if not stage then return end
    	print(json.encode(stage))
    end, true)
    ```
  </Tab>
</Tabs>

**Returns**

| Parameter   | Type     | Description            |
| ----------- | -------- | ---------------------- |
| totalDonate | `number` | จำนวนยอดโดเนท          |
| allDonors   | `table`  | รายชื่อผู้โดเนททั้งหมด |

### closeStage

> ใช้สำหรับปิดเวทีของผู้เล่น

<Tabs>
  <Tab title="Usage">
    ```lua theme={null}
    exports['Godji.Busking']:closeStage(playerId)
    ```
  </Tab>

  <Tab title="Example">
    ```lua theme={null}
    RegisterCommand('close', function(_, args)
    	exports['Godji.Busking']:closeStage(args[1])
    end, true)
    ```
  </Tab>
</Tabs>

### closeAllStage

> ใช้สำหรับปิดเวทีทั้งหมดในเซิฟ

<Tabs>
  <Tab title="Usage">
    ```lua theme={null}
    exports['Godji.Busking']:closeAllStage()
    ```
  </Tab>

  <Tab title="Example">
    ```lua theme={null}
    RegisterCommand('closeAll', function()
    	local total = exports['Godji.Busking']:closeAllStage()
    	print('Closed total stages: ' .. total)
    end, true)
    ```
  </Tab>
</Tabs>

**Returns**

* รายการเวลทีที่ปิดไปทั้งหมด
