Broken for Force Wipe

82 InstantBuy - Failed to compile: The non-generic method 'BaseEntity.ClientRPC(RpcTarget)' cannot be used with type arguments | Line: 30, Pos: 21

Could you please update it for us :)

InstantBuy.cs 30:21 The non-generic method 'BaseEntity.ClientRPC(RpcTarget)' cannot be used with type arguments

Yes ty

Same here :-(

Change this line and it should fix the issue.

machine.ClientRPC(RpcTarget.NetworkGroup("CLIENT_StartVendingSounds", machine), sellOrderID);

to

machine.ClientRPC<int>(null, "CLIENT_StartVendingSounds", sellOrderID);

Cant find that line

namespace Oxide.Plugins
{
[Info("Instant Buy", "Jake_Rich/collect_vood/Bushhy", "1.0.5")]
[Description("Vending Machine has no delay")]

public class InstantBuy : CovalencePlugin
{
#region Constants

private const string permUse = "instantbuy.use";

#endregion

#region Hooks

private void Init()
{
permission.RegisterPermission(permUse, this);
}

private object OnBuyVendingItem(VendingMachine machine, BasePlayer player, int sellOrderID, int amount)
{
if (machine == null || player == null) return null;

if (!permission.UserHasPermission(player.UserIDString, permUse)) return null;

if (player.inventory.containerMain.IsFull() && player.inventory.containerBelt.IsFull()) return null;

// FIX: Replaced null with RpcTarget.NetworkGroup so everyone nearby hears the vending sound
machine.ClientRPC(RpcTarget.NetworkGroup("CLIENT_StartVendingSounds"), sellOrderID);
machine.DoTransaction(player, sellOrderID, amount);
return false;
}

#endregion
}
}                              

Working

line 30