AllowThirdPartySales Warning Doesn't Provide Gamepass ID

With AllowThirdPartySales disabled, the warning printed when a third-party gamepass is prompted falsely reports the gamepass ID as 0.

To reproduce this issue, publish a game with AllowThirdPartySales disabled. Create a LocalScript in StarterPlayerScripts with the following contents:

game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer,1337)

When testing the game in Studio or Client, the following output will appear:
image

The gamepass ID is reported as 0 instead of 1337. As you can imagine, this makes it much harder to track down malicious code in your game - instead of Ctrl+Shift+F’ing for the ID, I have to manually check all instances of PromptGamePassPurchase instead.

I don’t know how long this has been happening. It occurs specifically with gamepasses, testing with models and such appears to work normally.

7 Likes

Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.

2 Likes