Code Examples

Production-ready Network Storage examples for common s&box game systems: inventory, XP, shops, quests, crafting, and marketplaces.

YAML Source is the Network Storage authoring standard.
Use the s&box Library Manager install for auto-updates. GitHub is best for agents, source review, contributions, and manual installs.

Complete Game Systems

Copy/paste-ready systems with collections, Game Values, workflows, endpoints, and C# calls.

Copy/paste-ready Network Storage systems for s&box games. Each example includes the collections, Game Values, workflows, endpoints, and C# calls needed for a complete server-authoritative feature.

## Start Here

- [Inventory System](/wiki/network-storage-v3/code-examples/inventory-system) — stackable items, item catalog checks, buy and consume endpoints.
- [XP and Leveling System](/wiki/network-storage-v3/code-examples/xp-leveling-system) — store XP, compute level from Game Values, and sync progression math.
- [Upgrade Shop System](/wiki/network-storage-v3/code-examples/upgrade-shop-system) — exponential costs, max-level validation, and atomic gold spends.
- [Daily Missions System](/wiki/network-storage-v3/code-examples/daily-missions-system) — daily rolls, mission progress, and claim validation.
- [Crafting System](/wiki/network-storage-v3/code-examples/crafting-system) — recipe tables, material checks, and server-side item creation.
- [Player Marketplace System](/wiki/network-storage-v3/code-examples/player-marketplace-system) — escrow-style listings and safe buyer/seller updates.

These examples are adapted from real s&box projects and cleaned into current YAML Source format.