> For the complete documentation index, see [llms.txt](https://docs.fivesecure.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fivesecure.net/for-developers/exports.md).

# Exports

Here you can find FiveSecure exports for developer usage

### Overview

The `ban` export allows you to trigger a FiveSecure ban from any other resource on your server. It distinguishes between manual administrator bans and automated system detections.

### Usage

To call this export in your code, use the following syntax:

```lua
-- [ Server side ]

--- @param playerId integer | The server ID of the player to ban
--- @param reason string | Public ban reason shown to the player
--- @param privateReason string | Internal reason visible only to admins/logs
--- @param note string | Extra context
exports["FiveSecure"]:ban(playerId, reason, privateReason, note)
```

### Parameters

| **Parameter**   | **Type** | **Description**                                       |
| --------------- | -------- | ----------------------------------------------------- |
| `playerId`      | integer  | The server ID of the player to be banned.             |
| `reason`        | string   | The public reason shown to the player (e.g., "0x11"). |
| `privateReason` | string   | Internal details seen only by admins in the logs.     |
| `note`          | string   | Additional context.                                   |
