> 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/hasasset.md). Agents can also search and read this documentation through its [MCP server](https://docs.novarietygames.com/~gitbook/mcp).

# hasAsset

Returns whether the inventory of the given player contains an asset

```lua
marketplace.hasAsset(assetId: Number): Boolean
```
