> For the complete documentation index, see [llms.txt](https://outlaw-development.gitbook.io/outlaw-product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://outlaw-development.gitbook.io/outlaw-product-documentation/product-information/admin-menu/exports.md).

# Exports

This shows how to use the basic exports that are available in the admin menu resource!

{% 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
```
