# Modding Examples

- [Accessing the player instance](https://api.raftmodding.com/modding-examples/back-soon.md)
- [Adding private variables](https://api.raftmodding.com/modding-examples/adding-private-variables.md)
- [Spawning dropped items](https://api.raftmodding.com/modding-examples/spawning-dropped-items.md)
- [Get selected hotbar item](https://api.raftmodding.com/modding-examples/get-selected-hotbar-item.md)
- [Get the current SteamID](https://api.raftmodding.com/modding-examples/get-the-current-steamid.md)
- [Get the current username](https://api.raftmodding.com/modding-examples/get-the-current-username.md)
- [Giving items to a player](https://api.raftmodding.com/modding-examples/giving-items-to-a-player.md)
- [Modifying private variables](https://api.raftmodding.com/modding-examples/modifying-private-variables.md)


---

# Agent Instructions: 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://api.raftmodding.com/modding-examples.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.
