> For the complete documentation index, see [llms.txt](https://titans-productions.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://titans-productions.gitbook.io/documentation/redm/scripts/wildlife-missions/development-api/client.md).

# Client

### Exports

API Getter Function

```lua
local WMAPI= exports.tp_wildlife_missions:getAPI()
```

1. Get player data related to the script.

```lua
--- @return table
--- @param table.Loaded : returns a boolean value ( true / false ) if player data are loaded.
--- @param table.IsPlayerAllowlisted : returns a boolean value ( true / false) if player is allowlisted to have hunting missions.
--- @param table.HasNUIActive : returns a boolean value ( true / false ) if player has the NUI active or not.
local PlayerData = WMAPI.GetPlayerData()
```

2. Close the NUI if missions display is active.

```lua
WMAPI.CloseNUI()
```

3. Start NUI missions display.

```lua
--- @param cooldown : requires an integer value (cooldown for the NUI to stay active, set to 0 for staying active without any cooldown active)
WMAPI.StartNUIDisplay(cooldown) 
```
