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
//---
	}
	if (this.vendorPlayer == null || this.customerPlayer == null)
	{
		return;
	}
	if (Interface.CallHook("OnShopAcceptClick", this, msg.player) != null)
	{
		return;
	}
	if (this.IsPlayerVendor(msg.player))
	{
//---

Released under the MIT License.