> 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)
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jl-store.gitbook.io/jl-illegalphone/jl_illegalphone/exports-and-events/server-exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
