Code Examples
Production-ready Network Storage examples for common s&box game systems: inventory, XP, shops, quests, crafting, and marketplaces.
Complete Game Systems
Copy/paste-ready systems with collections, Game Values, workflows, endpoints, and C# calls.
Example: RPG Game
A complete example showing how to build server-authoritative game logic using endpoints, Game Values, workflows, and rate limits. This covers a full RPG with co...
Inventory System for s&box Games
Build a server-authoritative stackable inventory with Network Storage. This example is designed for survival games, fishing games, RPGs, and shop-driven sandbox...
XP and Leveling System for s&box Games
Create a progression system that stores `xp`, not `level`. Level is derived from XP using Game Values, so you can rebalance progression without migrating player...
Upgrade Shop System for s&box Games
Build a server-authoritative upgrade shop with exponential pricing, max-level checks, and atomic currency spending. This pattern is based on real tycoon, fishin...
Daily Missions System for s&box Games
Build daily missions with a server-selected mission, secure progress increments, and one-time reward claiming. This pattern fits extraction shooters, racers, fi...
Crafting System for s&box Games
Build a server-authoritative crafting system with recipe tables, material checks, output items, and crafting XP. This works for survival games, factory games, m...
Player Marketplace System for s&box Games
Build a safe player-to-player marketplace with escrowed item listings. Sellers list items, Network Storage removes the listed quantity from the seller immediate...
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.