> 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/hasgamepass.md).

# hasGamepass

Returns true if the player with the given [UserId](https://create.roblox.com/docs/reference/engine/classes/Player#UserId) owns the [pass](https://create.roblox.com/docs/production/monetization/game-passes) with the given gamePassId, not to be confused with an asset ID.

```lua
marketplace.hasGamepass(gamePassId: Number): Boolean
```
