Fun (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.

  • Gets called whenever attempting to place an item in a backpack item, overriding returning output.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches ItemModBackpack.CanAcceptItem.

Example
object CanAcceptBackpackItem(Item backpack, Item item)
{
    Puts("CanAcceptBackpackItem was called!");
    return (bool) null;
}
  • Gets called whenever a chicken gets scared due to the presence of another potential threat.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches FleeState.StateEnter.

Example
void OnChickenScared(Chicken chicken, BaseEntity threat)
{
    Puts("OnChickenScared was called!");
}
  • Checks if player that connected is Jackie Chan.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches BasePlayer.PlayerInit.

Example
void OnJackieChan(BasePlayer player)
{
    Puts("OnJackieChan was called!");
}

Last updated