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.

CanAcceptBackpackItem

  • 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 Item , Item Item )
{
    Puts("CanAcceptBackpackItem was called!");
    return (bool) null;
}

OnChickenScared

  • 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 BaseEntity )
{
    Puts("OnChickenScared was called!");
}

OnJackieChan

  • 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 BasePlayer )
{
    Puts("OnJackieChan was called!");
}

Last updated