> For the complete documentation index, see [llms.txt](https://atascripts.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://atascripts.gitbook.io/docs/resource/advanced-fishing/exports.md). Agents can also search and read this documentation through its [MCP server](https://atascripts.gitbook.io/docs/~gitbook/mcp).

# Exports

### Exports

ATA Fishing provides exports to interact with the fishing system from other resources:

#### Server Exports

```lua
-- Get player's fishing level
local level = exports['ata_fishing']:GetPlayerLevel(playerId)

-- Get player's fishing XP
local xp = exports['ata_fishing']:GetPlayerXP(playerId)

-- Add XP to a player
exports['ata_fishing']:AddPlayerXP(playerId, amount)

-- Set a player's level
exports['ata_fishing']:SetPlayerLevel(playerId, level)
```
