Team (12)

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.

  • Useful for canceling team invitation acceptation.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.acceptinvite of Assembly-CSharp.dll.

Example
object OnTeamAcceptInvite(RelationshipManager.PlayerTeam local2, BasePlayer local0)
{
    Puts("OnTeamAcceptInvite was called!");
    return (object) null;
}
  • Useful for canceling team creation.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.trycreateteam of Assembly-CSharp.dll.

Example
object OnTeamCreate(BasePlayer local0)
{
    Puts("OnTeamCreate was called!");
    return (object) null;
}
  • Called after a team was created.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.trycreateteam of Assembly-CSharp.dll.

Example
void OnTeamCreated(BasePlayer local0)
{
    Puts("OnTeamCreated was called!");
}

This hook requires OnTeamCreate, which loads alongside OnTeamCreated.

  • Useful for canceling team disbandment.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.DisbandTeam of Assembly-CSharp.dll.

Example
object OnTeamDisband()
{
    Puts("OnTeamDisband was called!");
    return (object) null;
}
  • Called when the team was disbanded.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.DisbandTeam of Assembly-CSharp.dll.

Example
void OnTeamDisbanded()
{
    Puts("OnTeamDisbanded was called!");
}

This hook requires OnTeamDisband, which loads alongside OnTeamDisbanded.

  • Useful for canceling an invitation.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.sendinvite of Assembly-CSharp.dll.

Example
object OnTeamInvite(BasePlayer local0, BasePlayer local3)
{
    Puts("OnTeamInvite was called!");
    return (object) null;
}
  • Useful for canceling kick of the player from the team.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.kickmember of Assembly-CSharp.dll.

Example
object OnTeamKick(RelationshipManager.PlayerTeam local1, BasePlayer local0, ulong local2)
{
    Puts("OnTeamKick was called!");
    return (object) null;
}
  • Useful for canceling the leave from the team.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.leaveteam of Assembly-CSharp.dll.

Example
object OnTeamLeave(RelationshipManager.PlayerTeam local1, BasePlayer local0)
{
    Puts("OnTeamLeave was called!");
    return (object) null;
}
  • Useful for canceling player's promotion in the team.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.promote of Assembly-CSharp.dll.

Example
object OnTeamPromote(RelationshipManager.PlayerTeam local2, BasePlayer local1)
{
    Puts("OnTeamPromote was called!");
    return (object) null;
}
  • Useful for canceling the invitation rejection.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RelationshipManager.rejectinvite of Assembly-CSharp.dll.

Example
object OnTeamRejectInvite(BasePlayer local0, RelationshipManager.PlayerTeam local2)
{
    Puts("OnTeamRejectInvite was called!");
    return (object) null;
}
  • Called when player's team is updated.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches BasePlayer.UpdateTeam of Assembly-CSharp.dll.

Example
object OnTeamUpdate(BasePlayer self, ulong newTeam, BasePlayer self1)
{
    Puts("OnTeamUpdate was called!");
    return (object) null;
}
  • Called before sending team info to player.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches BasePlayer.TeamUpdate of Assembly-CSharp.dll.

Example
object OnTeamUpdated(BasePlayer self, ProtoBuf.PlayerTeam local3, BasePlayer self1)
{
    Puts("OnTeamUpdated was called!");
    return (object) null;
}

Last updated