---
title: "s&bux API - s&box library"
description: "Game monetization."
canonical: "https://sbox.watch/zh-cn/libraries/sbux/api/"
generated_at: "2026-11-27T12:31:25.180Z"
---

# s&bux API

Game monetization.

- 类型: 库
- 标识符: sbux.api
- 创作者: s&bux
- 规范地址: https://sbox.watch/zh-cn/libraries/sbux/api/
- Markdown: https://sbox.watch/zh-cn/libraries/sbux/api/index.md
- sbox.game: https://sbox.game/sbux/api/
- 生成时间: 2026-11-27T12:31:25.180Z

## 统计

- 24小时热度: +0
- Terry 评分: 57%
- 收藏: 8
- 好评: 9
- 差评: 2
- 更新时间: 2024年9月8日
- 创建时间: 2024年2月11日
- 大小: 101.2 KB
- 文件: 16
- 标签: monetization

## 描述

About S&bux API

s&bux is a parody of in-game currencies and can't be bought with real world money.

You get 25 s&bux for free every day you play a supported gamemode. 😃

While in a supported gamemode, enter into your console to view your balance.

How to use

Create a game pass resource

// It may take a second to get a response from the backend. Use this to ensure everything is loaded.
await Monetization.OnLoad();

// Check if a player owns the game pass.
if ( Monetization.Has( gamePass ) )
{
 // Do things...
}

// Prompts the player to purchase the game pass.
// True if the game pass was bought.
// A game pass can be bought multiple times.
if ( await Monetization.Purchase( gamePass ) )
{
 // Do things...
}

Known issues:

First project launch may throw an error due to \#5431 - but will still work.
