> For the complete documentation index, see [llms.txt](https://zat-scripts.gitbook.io/zat-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zat-scripts.gitbook.io/zat-scripts/qbcore/perks/exports.md).

# 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)
```
