Read-only demo.Generated sample data. Changes cannot be saved.

inventory_state

inventory_state Per player Endpoints only

Use from the game

Game clients cannot read or write this collection directly (accessMode is not public). Call an endpoint that reads or writes it; direct calls answer 403 ENDPOINT_ONLY. The endpoint "inventory_consume" reads or writes it: call that endpoint from the game. Collection access

This project has no enabled public key. Create one under API keys: game code needs it.

var result = await NetworkStorage.CallEndpoint( "inventory_consume", new { item_id = "" } );
if ( !result.HasValue )
{
    NetworkStorage.TryGetLastEndpointError( "inventory_consume", out var code, out var message );
    Log.Warning( $"inventory_consume failed: {code} {message}" );
    return;
}
My sbox-ns project ID is proj_a75070d69b083f0f16f827f1. I am working on the collection "inventory_state" (endpoint-only: game clients get 403 ENDPOINT_ONLY on direct calls). The endpoint "inventory_consume" reads or writes it. Dry-run that endpoint with endpoint_test (target next when staged), then show me the C# that calls it with NetworkStorage.CallEndpoint. Do not save anything without my confirm string.

New collection

Choose an id using letters, numbers, underscore or hyphen. A fresh draft opens with this id; nothing is published until you save.

Confirm