Variable Replication dont work

Hello, I have no idea why but Variable PlayerInventory won’t replicate, I have it set to Replicated but something still isn’t working, I think I’m making some small, stupid mistake that’s causing it not to work, I’ve been working on this for a few hours now and I’m out of ideas, please help me guys, maybe you can come up with something, I’m sending you some pictures of what the blueprint looks like


I need to do something like this: if PlayerInventory doesn’t have anything, it’s set to None, it’s set on the server but not on the client

It used to work fine for me before, as soon as I added an item it saved and replicated, but now I had to change it to None and something broke. I even tried to go back to the previous code but it was still the same, PlayerInventory won’t replicate.

(post deleted by author)

I believe the issue is SetArrayElement doesnt trigger replication, the array doesnt know its ‘dirty’

try using Set WithNotify on itself after a change. ie Set PlayerInventory to PlayerInventory