# Exports

{% hint style="danger" %}
You must keep the admin menu name to **OD\_AdminMenu** if you use any of these exports!
{% endhint %}

### Adding Banned Player Export

Please note this export DOES NOT remove the player but rather adds their ban into the system! Please also note that all the fields are **REQUIRED** and not optional in this export!

```lua
exports['OD_AdminMenu']:AddBannedPlayer(name, idents, reason, time)

--Info on parameters
name = The players name 
idents = Table of all the players identifiers! Must look like ident example below!
reason = Reason of player's ban
time = The time of the ban, must be one of the time examples below!

--Examples
Ident Example

{ --If you don't want to add that identifier put N/A (Must have at least one identifier)
        steam = "steam:11000014703df51", --Steam
        lic = "license:a168a6a6cc75ff84bee8fb19c7735bad1b50a182", --Game License
        dis = "<@267181487328067585>", --Discord
        xbx = "N/A", --Xbox
        live = "N/A", --Live Id
        ips = "N/A", --Ip
        name = "Hobo", --Name Again
        id = "1" --Server Id
}

Time Examples

--Can be any of the examples below (must be one of these below to work)
"1day"
"2day"
"3day"
"1week"
"2week"
"3week"
"1month"
"2month"
"3month"
"6month"
"1year"
"forever"
```

### Unban Player Via Ban Id

This export allows you to trigger the admin menu to unban said player with their corresponding ban id!

```lua
exports['UnbanThisId']:AddBannedPlayer(banid)

--Info on parameters
banid = The ban id of the player
```


---

# 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://outlaw-development.gitbook.io/outlaw-product-documentation/product-information/admin-menu/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.
