API:Class/GamePassService

Server only:This object is server-side only! You should use a Script instead of a LocalScript when using it.
Filtered-inheritance mode: While this class technically inherits all Instance class members, some (if not all) have been hidden because they serve no purpose for this object.
Service: This class is a service. It is a top-level singleton which can be obtained with the GetService method.

Workspace icon.pngGamePassService : Object Icon.pngInstance

This service allows developers to work with game passes, in terms of checking whether or not a player owns a particular game pass.


YieldFunctions

YieldFunctions [toggle]

boolPlayerHasPass ( Player player, int gamePassId )

Returns true if the player has the specified Game Pass, otherwise false.

|RMD member="API:Class/GamePassService/PlayerHasPass"|Returns true if the player has the specified Game Pass, otherwise false.|/RMD|
PlayerHasPass ( Player player, int gamePassId )
Returns true if the player has the specified Game Pass, otherwise false.


|RMD member="API:Class/GamePassService"|This service allows developers to work with game passes, in terms of checking whether or not a player owns a particular game pass. |/RMD|