Skip to content

OnShopAcceptClick

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnShopAcceptClick( ShopFront instance, BasePlayer player )
{
    Puts( "OnShopAcceptClick works!" );
    return null;
}

Location

  • ShopFront::AcceptClicked(BaseEntity.RPCMessage msg)
csharp
[RPC_Server]
[RPC_Server.IsVisible(3f)]
public void AcceptClicked(RPCMessage msg)
{
	if (IsTradingPlayer(msg.player) && !(vendorPlayer == null) && !(customerPlayer == null) && Interface.CallHook("OnShopAcceptClick", this, msg.player) == null)
	{
		if (IsPlayerVendor(msg.player))
		{
			SetFlag(Flags.Reserved1, b: true);
			vendorInventory.SetLocked(isLocked: true);
//---

Released under the MIT License.