> For the complete documentation index, see [llms.txt](https://api.raftmodding.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.raftmodding.com/modding-examples/giving-items-to-a-player.md).

# Giving items to a player

To give an item to a player you can use the `AddItem` method on the `PlayerInventory` class.

```csharp
// RAPI.GetLocalPlayer().Inventory.AddItem();

RAPI.GetLocalPlayer().Inventory.AddItem("Raw_Potato",1);
```
