Depends on whether your doing multiplayer or single player. For multiplayer you want the server to manage and control inventory.
Player adds item: player requests to add, server validates and adds it, replicates the addition back to player.
This prevents cheating.