> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aliyahs.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Server Exports

> This is the server exports for the script

<div style={{height: 1, borderRadius: 10, width: '100%', backgroundColor: 'rgba(255, 255, 255, 0.3)'}} />

<h3>Get Player Permissions</h3>
This returns the player permissions (returns table)

```lua
local perms = exports['aliyahs-admin']:GetPlayerPerms(id)

/*
    Example of return data:
    {Menu = {
        Open = true,
    },
    Misc = {
        DrawIDS = true,
    },
    Commands = {
        Announcement = true,
        CarWipe = true,
        EntityWipe = true,
        SetBank = true,
        SetGang = true,
        AddBank = true,
        SetMoney = true,
        AddMoney = true,
    },
    Players = {
        Open = true,
        Ban = true,
        Kick = true,
        Teleports = true,
        Screenshot = true,
        Spectate = true,
        SetJob = true,
        Setgang = true,
        Comserv = true,
        Revive = true,
    },
    Self = {
        Open = true,
        Heal = true,
        FullArmour = true,
        Revive = true,
        Noclip = true,
    },
    Vehicle = {
        Open = true,
        SpawnCar = true,
        Flip = true,
        Repair = true,
        Clean = true,
        MaxUpgrade = true,
    },
    Cached = {
        Open = true,
        TpLastCoords = true,
        CopyIDS = true,
        CopyHWIDS = true,
        OfflineBan = true,
    },
    Comserved = {
        Open = true,
        UpdateComserv = true,
        RemoveComserv = true,
        ComservInfo = true,
    },
    Banned = {
        Open = true,
        BanInfo = true,
        Unban = true,
    }}
*/
```

<h3>Has Permissions</h3>
Checks if the player has the specified perms (returns false or true)

```lua
local hasPerms = exports['aliyahs-admin']:HasPerms(id, category, permission)
print(hasPerms)

/*
    Note the category should be Menu, Misc, Commands, Players, Self, Vehicle, Cached, Comserved or Banned.
    The perm should be anything in the category.
*/
```

<h3>Screenshot Player</h3>
Creates a screenshot of a player specified (should only be used between players as it requires a starter)

```lua
exports['aliyahs-admin']:screenshot(source, target)
```
