> For the complete documentation index, see [llms.txt](https://docs.novarietygames.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novarietygames.com/websitecreator/luascript/marketplace/promptpurchase.md).

# promptPurchase

Prompts a user to purchase an item with the given assetId.&#x20;

`equipIfPurchase` defaults to true if argument is not provided

```lua
marketplace.promptProductPurchase(assetId: Number, equipIfPurchased: Boolean): void
```
