> 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/server.md).

# Server

### Exports

API Getter Function

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

1. Clear all the missions from the player target.

```lua
--- @param source - requires the online player source id.
WMAPI.ClearAllMissions(source)
```

2. Insert a new mission on the player target.

```lua
--- @param source - requires the online player source id.
--- @param missionIndex - requires a valid missionIndex from Config.Missions
WMAPI.InsertNewDailyMissionByIndex(source, missionIndex)
```

3. Generate new missions on the player target.

```lua
--- @param source - requires the online player source id.
WMAPI.GenerateDailyMissions(source)
```
