PlayerOwnsAsset/PlayerHasPass ~= output warning/wiki warning

On Wiki it says to use MarketplaceService:PlayerOwnsAsset for gamepasses

however,

In-game it now says to use GamepassService:PlayerHasPass

This started happening this week (today?) afaik.

19 Likes

Yeah this was a recent change. They probably stopped qualifying game passes as assets since their ownership database is starting to get full. I’ll get rid of that warning now.
Thanks!

3 Likes

So the correct method is PlayerHasPass?

Using PlayerOwnsAsset with a gamepass assetId is being redirected to that now, so yes.

I’ve always used PlayerOwnsAsset because it doesn’t cache the result.

As far as I know PlayerHasPass permanently caches the result. This becomes problematic if for example a player buys a game pass from the website while playing at the same time, because the game won’t register the purchase until the player rejoins.

Are there any plans of changing the cache behavior for PlayerHasPass?

7 Likes

@Seranok

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.