How do I replicate an inventory?

Well, I would have something like this:



USTRUCT()
struct FInventoryItem
{
    // Some UPROPERTY()s like name, description and etc.
}

class AMyCharacter : public ACharacter
{
    ...
    UPROPERTY(Replicated)
    TArray<FInventoryItem> Inventory;
}


This is the most basic approach.