# Exports

## Client

### openPerksUi

***

This function openthe perk related user interface (UI) elements on the player's screen.

* This function does not require any parameters.

**Usage Example:**

```lua
exports['zat-perks']:openPerksUi()
```

In this example:

* The perks UI elements is displayed on the player's screen.

### HasPerk

***

This function checks if the player has a specified perk or not

```lua
exports['zat-perks']:HasPerk(id)
```

1. **`id`** *(string)*
   * The perk ID to check.

**Returns:**

* **`boolean`**
  * Returns `true` if the player has the perk, `false` otherwise.

**Usage Example:**

```lua
local hasPerk = exports['zat-perks']:HasPerk('rv-chimist')

if hasPerk then
    print("The player has the perk RV Chimist")
else
    print("The player does not have the perk RV Chimist")
end
```

### AddReputationPoints

***

This function adds reputation points to the player

```lua
exports['zat-perks']:AddReputationPoints(amount)
```

1. **`amount`** *(number)*
   * The Amount to add to the players' reputation

**Usage Example:**

```lua
exports['zat-perks']:AddReputationPoints(3)
```

## Server

### HasPerk

***

This function checks if the player has a specified perk or not

```lua
exports['zat-perks']:HasPerk(source, id)
```

1. **`id`** *(string)*
   * The perk ID to check.

**Returns:**

* **`boolean`**
  * Returns `true` if the player has the perk, `false` otherwise.

**Usage Example:**

```lua
local hasPerk = exports['zat-perks']:HasPerk(source, 'rv-chimist')

if hasPerk then
    print("The player has the perk RV Chimist")
else
    print("The player does not have the perk RV Chimist")
end
```

### AddReputationPoints

***

This function adds reputation points to the player

```lua
exports['zat-perks']:AddReputationPoints(source, amount)
```

1. **`amount`** *(number)*
   * The Amount to add to the players' reputation

**Usage Example:**

```lua
exports['zat-perks']:AddReputationPoints(source, 3)
```


---

# 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://zat-scripts.gitbook.io/zat-scripts/qbcore/perks/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.
