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

# Exports

## Update Job Data

`exports["nex-hud"]:updateJobData(player, job, callsign)`

**Example**

{% code overflow="wrap" %}

```lua
exports["nex-hud"]:updateJobData(1, "BCSO", "201") -- to set data
exports["nex-hud"]:updateJobData(1, nil, nil) -- to clear existing job data
```

{% endcode %}

## Update Head Tags

`exports["nex-hud"]:updateHeadtags(player, headtags)`

**Example**

{% code overflow="wrap" %}

```lua
exports["nex-hud"]:updateHeadtags(1, "BCSO Deputy") -- to set data
exports["nex-hud"]:updateHeadtags(1, nil) -- to clear data
```

{% endcode %}

## Get Peacetime

`exports["nex-hud"]:getPeacetime()`

**Returns**

{% code overflow="wrap" %}

```lua
{
    "area": "",
    "state": "disabled",
    "time": 1737986677
}
```

{% endcode %}

## Get AOP

`exports["nex-hud"]:getAOP()`

**Returns**

{% code overflow="wrap" %}

```lua
{
    "admin": "Server",
    "time": 1737986677,
    "areas": [
        "ss",
        "pb"
    ]
}
```

{% endcode %}

## Get AOP Prettified

`exports["nex-hud"]:getAreaofPlay()`

**Returns**

{% code overflow="wrap" %}

```lua
Documentation WIP
```

{% endcode %}

## Get Priority

`exports["nex-hud"]:getPriority()`

**Returns**

{% code overflow="wrap" %}

```lua
[
    {
        "area": "bc",
        "state": "available",
        "time": 1737986677
    },
    {
        "area": "ls",
        "state": "available",
        "time": 1737986677
    },
    {
        "area": "fz",
        "state": "available",
        "time": 1737986677
    },
    {
        "area": "banks",
        "state": "available",
        "time": 1737986677
    }
]
```

{% endcode %}
