Documenting a native
One file per function, in content/natives/<namespace>/.
---
name: player:kick
args: "reason: string?"
summary: "Disconnects the player."
lang: Luau
weight: 5
---
```luau
player:kick(reason: string?)
```
Disconnects the player.
## Parameters
- **reason** (`string`, optional): text shown to the player
## Example
```luau
player:kick("Class is over.")
```
| Field | Role |
|---|---|
name |
exact name; written as code in a page, it becomes a link |
args |
what is shown in the list |
summary |
one sentence, required |
lang |
Luau, C, C++ / Blueprint |
kind |
function (default) or event |
aliases |
other names: [player:teleport] |
weight |
order in the namespace |
deprecated |
true if the function should no longer be used |
Sections#
In this order, when useful: Parameters, Returns, Example, Notes, See also.
A new namespace#
A folder with an _index.md:
---
title: WEATHER
set: server
weight: 70
---
set: server, client or game.