Shop (3)

All currently available hooks that are found in Carbon. Most hooks would be ones compatible with Oxide, although there are Carbon-only ones as well.

OnShopAcceptClick

  • Called when a player is trying to accept a trade in ShopFront.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ShopFront.AcceptClicked of Assembly-CSharp.dll.

Example
object OnShopAcceptClick(ShopFront ShopFront , BasePlayer BasePlayer )
{
    Puts("OnShopAcceptClick was called!");
    return (object) null;
}

OnShopCancelClick

  • Called when a player is cancelling a trade.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ShopFront.CancelClicked of Assembly-CSharp.dll.

Example
object OnShopCancelClick(ShopFront ShopFront , BasePlayer BasePlayer )
{
    Puts("OnShopCancelClick was called!");
    return (object) null;
}
  • Called before the trade is completed in ShopFront.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ShopFront.CompleteTrade of Assembly-CSharp.dll.

Example
object OnShopCompleteTrade(ShopFront ShopFront )
{
    Puts("OnShopCompleteTrade was called!");
    return (object) null;
}

Last updated