# Exports

#### ⚙️ Example Usage

You can utilize the **HandleReputation** export to manage player reputation in the Black Market system. Below are examples of how to increase, decrease, and retrieve a player's reputation.

Use this to retrieve and display the current reputation of the player.

<details>

<summary>Click to view Exports List</summary>

**Increase Reputation:**

To **increase** a player’s reputation, use the following code:

```lua
increaseAmount = 10  -- Set the amount to increase reputation
exports['evo-blackmarket']:HandleReputation('increase', increaseAmount)
```

This will increase the player's reputation by the specified amount (in this case, 10).

***

**Decrease Reputation:**

To **decrease** a player’s reputation, use this code:

```lua
decreaseAmount = 5  -- Set the amount to decrease reputation
exports['evo-blackmarket']:HandleReputation('decrease', decreaseAmount)
```

This will reduce the player’s reputation by 5. If the reputation falls below 0, it will automatically reset to 0.

***

**Get Current Reputation:**

To **retrieve** a player’s current reputation, use the following:

```lua
currentReputation = exports['evo-blackmarket']:HandleReputation('get')
print("Current Reputation:", currentReputation)
```

This will return and print the player's current reputation.

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://evo-development.gitbook.io/evo-development-docs/products/advanced-blackmarket/exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
