Client is absorbing remote function because RemoteRole is ROLE_None

The client does not start the server function due to the error:

LogNet: Warning: Client is absorbing remote function ServerFire on actor M4_0 because RemoteRole is ROLE_None

As I understand it, i need to assign a role to the weapon, but doesn’t it inherit the role from the owner? When a weapon spawns, I give it an owner in this way: (spawn occurs in the player’s class in “SpawnActorDeffered method”)

PrimaryWeapon->SetOwner(GetController());

PrimaryWeapon->SetRole(GetLocalRole());

False alarm, just forgot to SetReplicates(true) for weapon