July 2026 Staging

CustomVendingSetup - Failed to compile: 'BasePlayer' does not contain a definition for 'ClientRPCPlayer' and no accessible extension method 'ClientRPCPlayer' accepting a first argument of type 'BasePlayer' could be found (are you missing a using directive or an assembly reference?) | Line: 3072, Pos: 24

To fix the compilation error,
you need to replace the obsolete ClientRPCPlayer method with the current ClientRPC method.

In the file CustomVendingSetup.cs.
Locate line 3072 inside the EditController class

Replace this line:
1 player.ClientRPCPlayer(null, player, "RPC_OpenLootPanel", containerEntity.panelName);


With this line:
1 player.ClientRPC(player.net.connection, "RPC_OpenLootPanel", containerEntity.panelName);
do you think that this would be a better solution ?
 
Replace thisl
 
player.ClientRPCPlayer(null, player, "RPC_OpenLootPanel", containerEntity.panelName);
 
with this;
 
player.ClientRPC(RpcTarget.Player("RPC_OpenLootPanel", player), containerEntity.panelName);

 

You'll find out. Curious about the outcome?

on staging it works,