> For the complete documentation index, see [llms.txt](https://jl-store.gitbook.io/jl-illegalphone/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jl-store.gitbook.io/jl-illegalphone/jl_illegalphone/exports-and-events/server-exports.md).

# Server Exports

## <mark style="color:blue;">GetLevel</mark>

Returns the level of a certain skill.

{% code fullWidth="false" %}

```lua
local level = exports["jl_illegalphone"]:GetLevel(source, skill)
```

{% endcode %}

## <mark style="color:blue;">GetXP</mark>

Returns the xp of a certain skill.

```lua
local xp = exports["jl_illegalphone"]:GetXP(source, skill)
```

## <mark style="color:blue;">GetAllLevels</mark>

Returns a table that contains all skills with the levels.

```lua
local allLevels = exports["jl_illegalphone"]:GetAllLevels(source)
```

## <mark style="color:blue;">GetAllXP</mark>

Returns a table that conatins all skills with the XP.

```lua
local allXP = exports["jl_illegalphone"]:GetAllXP(source)
```

## <mark style="color:blue;">GetTotalXP</mark>

Returns the total amount of XP that a player has combined.

```lua
local totalXP = exports["jl_illegalphone"]:GetTotaltXP(source)
```

## <mark style="color:blue;">UpdateLevel</mark>

Updates a players level.

```lua
exports["jl_illegalphone"]:UpdateLevel(source, skill, newLevel)
```

## <mark style="color:blue;">UpdateXP</mark>

Updates a players XP

```lua
exports["jl_illegalphone"]:UpdateXP(source, skill, newLevel)
```
