Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is there a way to detect if a player has bought a gamepass ingame?

Asked by 10 years ago

Hi, thanks for taking time to read my question. I would like to know if there is a way to detect if a player has bought a Game Pass while the player is in-game. I'm curious because I know that sometimes a player will buy passes while in the game, and they don't get what they paid for in that game session. I would use developer products but I don't want a player to buy something twice that works in general. Basically, what I'm getting at is that I have something that I want to be bought only once, and I want the game to detect if a player has bought the pass while in-game. Is there a way to do this?

2 answers

Log in to vote
2
Answered by
Vividex 162
10 years ago

Click Here for more information on what is called "PlayerHasPass" which returns the value true if the player has a specific gamepass, otherwise false.

Ad
Log in to vote
0
Answered by
Destrings 406 Moderation Voter
10 years ago

Just check if the gamepass has been purchased in the PromptPurchaseFinished handler.

Answer this question