Facepunch.Steamworks Wiki

Steamworks.SteamInventory.GenerateItemAsync

Syntax

static async Task<InventoryResult> GenerateItemAsync( InventoryDef target, int amount )

Description

This is used to grant a specific item to the user. This should only be used for development prototyping, from a trusted server, or if you don't care about hacked clients granting arbitrary items. This call can be disabled by a setting on Steamworks.

Arguments

InventoryDef target
int amount

Returns