Functions
8PromptNativePurchase
(player: Instance, productId: string) → void
| Field | XML type | Value |
|---|
Name | string | PromptNativePurchase |
PromptProductPurchase
(player: Instance, productId: int, equipIfPurchased: bool = …, currencyType: CurrencyType = …) → void
| Field | XML type | Value |
|---|
Name | string | PromptProductPurchase |
PromptPurchase
(player: Instance, assetId: int, equipIfPurchased: bool = …, currencyType: CurrencyType = …) → void
| Field | XML type | Value |
|---|
Name | string | PromptPurchase |
summary | string | Will 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. |
PromptThirdPartyPurchase
(player: Instance, productId: string) → void
| Field | XML type | Value |
|---|
Name | string | PromptThirdPartyPurchase |
SignalClientPurchaseSuccess
(ticket: string, playerId: int, productId: int) → void
| Field | XML type | Value |
|---|
Name | string | SignalClientPurchaseSuccess |
SignalPromptProductPurchaseFinished
(userId: int, productId: int, success: bool) → void
| Field | XML type | Value |
|---|
Name | string | SignalPromptProductPurchaseFinished |
SignalPromptPurchaseFinished
(player: Instance, assetId: int, success: bool) → void
| Field | XML type | Value |
|---|
Name | string | SignalPromptPurchaseFinished |
SignalServerLuaDialogClosed
(value: bool) → void
| Field | XML type | Value |
|---|
Name | string | SignalServerLuaDialogClosed |
Events
12ClientLuaDialogRequested
(arguments: Tuple) → void
| Field | XML type | Value |
|---|
Name | string | ClientLuaDialogRequested |
ClientPurchaseSuccess
(ticket: string, playerId: int, productId: int) → void
| Field | XML type | Value |
|---|
Name | string | ClientPurchaseSuccess |
LuaDialogCallbackSignal
(value: bool, player: Instance) → void
| Field | XML type | Value |
|---|
Name | string | LuaDialogCallbackSignal |
NativePurchaseFinished
(player: Instance, productId: string, wasPurchased: bool) → void
| Field | XML type | Value |
|---|
Name | string | NativePurchaseFinished |
PromptNativePurchaseRequested
(player: Instance, productId: string) → void
| Field | XML type | Value |
|---|
Name | string | PromptNativePurchaseRequested |
PromptProductPurchaseFinished
(userId: int, productId: int, isPurchased: bool) → void
| Field | XML type | Value |
|---|
Name | string | PromptProductPurchaseFinished |
PromptProductPurchaseRequested
(player: Instance, productId: int, equipIfPurchased: bool, currencyType: CurrencyType) → void
| Field | XML type | Value |
|---|
Name | string | PromptProductPurchaseRequested |
PromptPurchaseFinished
(player: Instance, assetId: int, isPurchased: bool) → void
| Field | XML type | Value |
|---|
Name | string | PromptPurchaseFinished |
summary | string | Fired 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
| Field | XML type | Value |
|---|
Name | string | PromptPurchaseRequested |
PromptThirdPartyPurchaseRequested
(player: Instance, productId: string) → void
| Field | XML type | Value |
|---|
Name | string | PromptThirdPartyPurchaseRequested |
ServerPurchaseVerification
(serverResponseTable: Dictionary) → void
| Field | XML type | Value |
|---|
Name | string | ServerPurchaseVerification |
ThirdPartyPurchaseFinished
(player: Instance, productId: string, receipt: string, wasPurchased: bool) → void
| Field | XML type | Value |
|---|
Name | string | ThirdPartyPurchaseFinished |