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.

  • 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 self, BasePlayer player)
{
    Puts("OnShopAcceptClick was called!");
    return (object) null;
}
  • 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 self, BasePlayer player)
{
    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 self)
{
    Puts("OnShopCompleteTrade was called!");
    return (object) null;
}

Last updated