> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/scripting-cyberpunk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/scripting-cyberpunk/scripting/snippets-and-examples/player/giving-an-item.md).

# Giving An Item

How to give an item to the player

{% tabs %}
{% tab title="Redscript" %}

```swift
let player = GetPlayer(GetGameInstance()); // or an already existing reference if you have one
let transactionSystem = GameInstance.GetTransactionSystem(GetGameInstance());

if IsDefined(player) && IsDefined(transactionSystem) {
  transactionSystem.GiveItemByTDBID(player, t"Items.Solo_01_Set_Jacket", 1);
}
```

{% endtab %}

{% tab title="Lua" %}

```lua
Game.AddToInventory("Items.Solo_01_Set_Jacket", 1)
```

{% endtab %}
{% endtabs %}
