File tree Expand file tree Collapse file tree
src/gameproductservice/src/Client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777--[=[
7878 Fires when the specified player purchases an asset
7979
80+ @param player Player
8081 @param assetType GameConfigAssetType
8182 @param idOrKey string | number
8283 @return Observable<>
8384]=]
84- function GameProductServiceClient :ObservePlayerAssetPurchased (assetType , idOrKey )
85+ function GameProductServiceClient :ObservePlayerAssetPurchased (player , assetType , idOrKey )
86+ assert (typeof (player ) == " Instance" and player :IsA (" Player" ), " Bad player" )
8587 assert (GameConfigAssetTypeUtils .isAssetType (assetType ), " Bad assetType" )
8688 assert (type (idOrKey ) == " number" or type (idOrKey ) == " string" , " Bad idOrKey" )
8789
88- return self ._gameProductDataService :ObservePlayerAssetPurchased (assetType , idOrKey )
90+ return self ._gameProductDataService :ObservePlayerAssetPurchased (player , assetType , idOrKey )
8991end
9092
9193--[=[
You can’t perform that action at this time.
0 commit comments