Gamepass id's on gamepage are incorrect!

  • Describe the bug. Describe what is happening when the bug occurs. Describe what you would normally expect to occur.

Since the layout update from gamepasses the id’s are no longer correct.
https://www.roblox.com/game-pass/3132795/XP-limit-10-higher

using the 3132795 as the id will redirect to another model.

  • When did the bug start happening? If we can tie it to a specific release that helps us figure out what we broke.

I only noticed it now.

5 Likes

Game Pass IDs going forward are no longer asset IDs. Game Passes have their own page.

When I go to your game’s page, click on Store, and click on the “XP limit 10% higher” game pass, it sends me to this page:
https://www.roblox.com/game-pass/3132795/XP-limit-10-higher

Can you describe the steps you are taking to get to your game pass that results in you hitting the model’s page?

1 Like

So how do we check if a player has a gamepass? I tried to do “game:GetService(“GamePassService”):PlayerHasPass(player, id)” and it gives me “GamePassId ‘3140049’ is not of type Game Pass. Please use MarketplaceService:PlayerOwnsAsset instead.”

8 Likes

Where can I find it’s asset id now then?

4 Likes

Some help on this would be nice, I woke up to find my game being broken. What should we be doing differently?
@Iron_Legion

1 Like

I’ve been having the same issues on the problems in this thread :disappointed_relieved:

1 Like

Yes how exactly are we supposed to check using the new Gamepass ID’s?

Both of the below methods throw the same warning: “GamePassId ‘1060390’ is not of type Game Pass. Please use MarketplaceService:PlayerOwnsAsset instead”.

game.GamePassService:PlayerHasPass(game.Players.rcouret,1060390)
game.MarketplaceService:PlayerOwnsAsset(game.Players.rcouret,1060390)

It is indeed a game pass: https://www.roblox.com/game-pass/1060390/Black-Flare (Although today seems to be redirecting back to the AssetId version)

4 Likes

This is a known bug, and for others struggling to find the correct method, I had to dig awhile before I did. Referencing this recent post about the update ([Live] Changes to Game Passes), we are told to now use a new method, UserOwnsGamePassAsync:

local function gpCheck(player,GamePassId)
    if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,GamePassId) then
	    return true
    else
	    return false
    end
end
5 Likes