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

# Meth - Exports - Shared

> All exports available on the client and server

### **GetPlayerData**

Retrieves player data. Optionally, you can pass a string to get a specific piece of data.

<Tabs>
  <Tab title="Client">
    ```lua theme={null}
    exports.lation_meth:GetPlayerData(key)
    ```

    <ParamField path="key" type="string">
      The specific player data field you want to retrieve (e.g., `"level"`, `"exp"`, `"inside"`). If omitted, returns a table with all player data.
    </ParamField>
  </Tab>

  <Tab title="Server">
    ```lua theme={null}
    exports.lation_meth:GetPlayerData(source, key)
    ```

    <ParamField path="source" type="string" required>
      The source (*player ID*) to retrieve data from.
    </ParamField>

    <ParamField path="key" type="string">
      The specific player data field you want to retrieve (e.g., `"level"`, `"exp"`, `"inside"`). If omitted, returns a table with all player data.
    </ParamField>
  </Tab>
</Tabs>

### **GetTableData**

Retrieves table data for a given table ID.

<Tabs>
  <Tab title="Client">
    ```lua theme={null}
    exports.lation_meth:GetTableData(tableId)
    ```

    <ParamField path="tableId" type="number" required>
      The table ID you want to retrieve data for.
    </ParamField>
  </Tab>

  <Tab title="Server">
    ```lua theme={null}
    exports.lation_meth:GetTableData(tableId)
    ```

    <ParamField path="tableId" type="number" required>
      The table ID you want to retrieve data for.
    </ParamField>
  </Tab>
</Tabs>

### **GetWarehouseData**

Retrieves warehouse data for a given warehouse ID.

<Tabs>
  <Tab title="Client">
    ```lua theme={null}
    exports.lation_meth:GetWarehouseData(warehouseId)
    ```

    <ParamField path="warehouseId" type="number" required>
      The warehouse ID you want to retrieve data for.
    </ParamField>
  </Tab>

  <Tab title="Server">
    ```lua theme={null}
    exports.lation_meth:GetWarehouseData(warehouseId)
    ```

    <ParamField path="warehouseId" type="number" required>
      The warehouse ID you want to retrieve data for.
    </ParamField>
  </Tab>
</Tabs>

### **IsWarehouseOwner**

Returns `true` or `false` if the player is the owner of the warehouse.

<Tabs>
  <Tab title="Client">
    ```lua theme={null}
    exports.lation_meth:IsWarehouseOwner(warehouseId)
    ```

    <ParamField path="warehouseId" type="number" required>
      The warehouse ID you want to check the player is an owner of.
    </ParamField>
  </Tab>

  <Tab title="Server">
    ```lua theme={null}
    exports.lation_meth:IsWarehouseOwner(source, warehouseId)
    ```

    <ParamField path="source" type="string" required>
      The source (*player ID*) to retrieve data from.
    </ParamField>

    <ParamField path="warehouseId" type="number" required>
      The warehouse ID you want to check the player is an owner of.
    </ParamField>
  </Tab>
</Tabs>

### **IsAuthorizedUser**

Returns `true` or `false` if the player is an authorized user of the warehouse.

<Tabs>
  <Tab title="Client">
    ```lua theme={null}
    exports.lation_meth:IsAuthorizedUser(warehouseId)
    ```

    <ParamField path="warehouseId" type="number" required>
      The warehouse ID you want to check the player is an authorized user of.
    </ParamField>
  </Tab>

  <Tab title="Server">
    ```lua theme={null}
    exports.lation_meth:IsAuthorizedUser(source, warehouseId)
    ```

    <ParamField path="source" type="string" required>
      The source (*player ID*) to retrieve data from.
    </ParamField>

    <ParamField path="warehouseId" type="number" required>
      The warehouse ID you want to check the player is an authorized user of.
    </ParamField>
  </Tab>
</Tabs>

<Note>
  Looking for an export we don't have listed here? Contact us and we'll do what we can!
</Note>
