Ok, I’ve set my Character as the Owner of the weapon being spawned and it now works. ( <— this was the problem by the way, not the ServerRPC function )
I can finally get my weapon-enabling work!
The problem is that when the game starts, the client doesn’t equip the Pistol automatically (as I told him to do).
If I manually press the button to EquipPistol(), at that point it works.
But If I EquipPistol() in the PostInitializeComponents() -> InitializeInventory() it doesn’t work.
It’s like it should take some time. It didn’t take much to set my character as owner, why isn’t it able to EquipPistol() quickly?
How could I manage this in a multiplayer game where, as soon as you click “Join Match”, you must spawn with your inventory without any annoying delay?