> For the complete documentation index, see [llms.txt](https://xtask.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xtask.rlib.io/configuration/achievements/xtask.onserver.md).

# XTASK.onServer

:red\_square: SERVER

## <mark style="color:red;">▸ Data Type</mark>

&#x20;      <mark style="color:yellow;">**function**</mark>

## <mark style="color:red;">▸ Description</mark>

The code provided in this function is what will be executed when a player either completes an achievement, or when a player progresses in an achievement that requires X amount of something.

To make your own, you must know Lua.

```lua
XTASK.onServer = function( )
    // your code here
end
```
