MarketplaceService

extends Instance

48 members

Class fields

FieldXML typeValue
NamestringMarketplaceService
ExplorerImageIndexstring46

Functions

20
PlayerCanMakePurchases
(player: Instance) → bool
FieldXML typeValue
NamestringPlayerCanMakePurchases
PromptBundlePurchase
(player: Instance, bundleId: int64) → void
FieldXML typeValue
NamestringPromptBundlePurchase
PromptGamePassPurchase
(player: Instance, gamePassId: int) → void
FieldXML typeValue
NamestringPromptGamePassPurchase
PromptNativePurchase
(player: Instance, productId: string) → void
FieldXML typeValue
NamestringPromptNativePurchase
PromptNativePurchaseWithLocalPlayer
(productId: string) → void
FieldXML typeValue
NamestringPromptNativePurchaseWithLocalPlayer
PromptProductPurchase
(player: Instance, productId: int, equipIfPurchased: bool = …, currencyType: CurrencyType = …) → void
FieldXML typeValue
NamestringPromptProductPurchase
PromptPurchase
(player: Instance, assetId: int64, equipIfPurchased: bool = …, currencyType: CurrencyType = …) → void
FieldXML typeValue
NamestringPromptPurchase
summarystringWill prompt 'player' to purchase the item associated with 'assetId'. 'equipIfPurchased' is an optional argument that will give the item to the player immediately if they buy it (only applies to gear). 'currencyType' is also optional and will attempt to prompt the user with a specified currency if the product can be purchased with this currency, otherwise we use the default currency of the product.
PromptRobloxPurchase
(assetId: int64, equipIfPurchased: bool) → void
FieldXML typeValue
NamestringPromptRobloxPurchase
PromptThirdPartyPurchase
(player: Instance, productId: string) → void
FieldXML typeValue
NamestringPromptThirdPartyPurchase
ReportAssetSale
(assetId: string, robuxAmount: int) → void
FieldXML typeValue
NamestringReportAssetSale
ReportRobuxUpsellStarted
() → void
FieldXML typeValue
NamestringReportRobuxUpsellStarted
SignalAssetTypePurchased
(player: Instance, assetType: AssetType) → void
FieldXML typeValue
NamestringSignalAssetTypePurchased
SignalClientPurchaseSuccess
(ticket: string, playerId: int, productId: int) → void
FieldXML typeValue
NamestringSignalClientPurchaseSuccess
SignalMockPurchasePremium
() → void
FieldXML typeValue
NamestringSignalMockPurchasePremium
SignalPromptBundlePurchaseFinished
(player: Instance, bundleId: int64, success: bool) → void
FieldXML typeValue
NamestringSignalPromptBundlePurchaseFinished
SignalPromptGamePassPurchaseFinished
(player: Instance, gamePassId: int, success: bool) → void
FieldXML typeValue
NamestringSignalPromptGamePassPurchaseFinished
SignalPromptPremiumPurchaseFinished
(didTryPurchasing: bool) → void
FieldXML typeValue
NamestringSignalPromptPremiumPurchaseFinished
SignalPromptProductPurchaseFinished
(userId: int, productId: int, success: bool) → void
FieldXML typeValue
NamestringSignalPromptProductPurchaseFinished
SignalPromptPurchaseFinished
(player: Instance, assetId: int, success: bool) → void
FieldXML typeValue
NamestringSignalPromptPurchaseFinished
SignalServerLuaDialogClosed
(value: bool) → void
FieldXML typeValue
NamestringSignalServerLuaDialogClosed

Yield functions

8
GetDeveloperProductsAsync
() → Instance
FieldXML typeValue
NamestringGetDeveloperProductsAsync
GetProductInfo
(assetId: int64, infoType: InfoType = …) → Dictionary
FieldXML typeValue
NamestringGetProductInfo
summarystringTakes one argument "assetId" which should be a number of an asset on www.roblox.com. Returns a table containing the product information (if this process fails, returns an empty table).
GetRobuxBalance
() → int
FieldXML typeValue
NamestringGetRobuxBalance
IsPlayerSubscribed
(player: Instance, subscriptionId: int64) → bool
FieldXML typeValue
NamestringIsPlayerSubscribed
PerformPurchase
(infoType: InfoType = …, productId: int64 = …, expectedPrice: int = …, requestId: string = …, isRobloxPurchase: bool = …) → Dictionary
FieldXML typeValue
NamestringPerformPurchase
PlayerOwnsAsset
(player: Instance, assetId: int64) → bool
FieldXML typeValue
NamestringPlayerOwnsAsset
summarystringChecks to see if 'Player' owns the product associated with 'assetId'. Returns true if the player owns it, false otherwise. This call will produce a warning if called on a guest player.
PlayerOwnsBundle
(player: Instance, bundleId: int64) → bool
FieldXML typeValue
NamestringPlayerOwnsBundle
UserOwnsGamePassAsync
(userId: int64, gamePassId: int64) → bool
FieldXML typeValue
NamestringUserOwnsGamePassAsync

Events

19
ClientLuaDialogRequested
(arguments: Tuple) → void
FieldXML typeValue
NamestringClientLuaDialogRequested
ClientPurchaseSuccess
(ticket: string, playerId: int, productId: int) → void
FieldXML typeValue
NamestringClientPurchaseSuccess
LuaDialogCallbackSignal
(value: bool, player: Instance) → void
FieldXML typeValue
NamestringLuaDialogCallbackSignal
NativePurchaseFinished
(player: Instance, productId: string, wasPurchased: bool) → void
FieldXML typeValue
NamestringNativePurchaseFinished
NativePurchaseFinishedWithLocalPlayer
(productId: string, wasPurchased: bool) → void
FieldXML typeValue
NamestringNativePurchaseFinishedWithLocalPlayer
PromptBundlePurchaseFinished
(player: Instance, bundleId: int64, wasPurchased: bool) → void
FieldXML typeValue
NamestringPromptBundlePurchaseFinished
PromptBundlePurchaseRequested
(player: Instance, bundleId: int64) → void
FieldXML typeValue
NamestringPromptBundlePurchaseRequested
PromptGamePassPurchaseFinished
(player: Instance, gamePassId: int, wasPurchased: bool) → void
FieldXML typeValue
NamestringPromptGamePassPurchaseFinished
PromptGamePassPurchaseRequested
(player: Instance, gamePassId: int) → void
FieldXML typeValue
NamestringPromptGamePassPurchaseRequested
PromptNativePurchaseRequested
(player: Instance, productId: string) → void
FieldXML typeValue
NamestringPromptNativePurchaseRequested
PromptPremiumPurchaseRequested
(player: Instance) → void
FieldXML typeValue
NamestringPromptPremiumPurchaseRequested
PromptProductPurchaseFinished
(userId: int, productId: int, isPurchased: bool) → void
FieldXML typeValue
NamestringPromptProductPurchaseFinished
PromptProductPurchaseRequested
(player: Instance, productId: int, equipIfPurchased: bool, currencyType: CurrencyType) → void
FieldXML typeValue
NamestringPromptProductPurchaseRequested
PromptPurchaseFinished
(player: Instance, assetId: int, isPurchased: bool) → void
FieldXML typeValue
NamestringPromptPurchaseFinished
summarystringFired when a 'player' dismisses a purchase dialog for 'assetId'. If the player purchased the item 'isPurchased' will be true, otherwise it will be false. This call will produce a warning if called on a guest player.
PromptPurchaseRequested
(player: Instance, assetId: int, equipIfPurchased: bool, currencyType: CurrencyType) → void
FieldXML typeValue
NamestringPromptPurchaseRequested
PromptRobloxPurchaseRequested
(assetId: int64, equipIfPurchased: bool) → void
FieldXML typeValue
NamestringPromptRobloxPurchaseRequested
PromptThirdPartyPurchaseRequested
(player: Instance, productId: string) → void
FieldXML typeValue
NamestringPromptThirdPartyPurchaseRequested
ServerPurchaseVerification
(serverResponseTable: Dictionary) → void
FieldXML typeValue
NamestringServerPurchaseVerification
ThirdPartyPurchaseFinished
(player: Instance, productId: string, receipt: string, wasPurchased: bool) → void
FieldXML typeValue
NamestringThirdPartyPurchaseFinished

Callbacks

1
ProcessReceipt
(receiptInfo: Dictionary) → ProductPurchaseDecision
FieldXML typeValue
NamestringProcessReceipt
summarystringCallback that is executed for pending Developer Product receipts. If this function does not return Enum.ProductPurchaseDecision.PurchaseGranted, then you will not be granted the money for the purchase! The callback will be invoked with a table, containing the following informational fields: PlayerId - the id of the player making the purchase. PlaceIdWherePurchased - the specific place where the purchase was made. PurchaseId - a unique identifier for the purchase, should be used to prevent granting an item multiple times for one purchase. ProductId - the id of the purchased product. CurrencyType - the type of currency used (Tix, Robux). CurrencySpent - the amount of currency spent on the product for this purchase.