Bookmark (9)

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 tries to add a bookmark at a computer station.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ComputerStation.AddBookmark of Assembly-CSharp.dll.

Example
object OnBookmarkAdd(ComputerStation self, BasePlayer local0, string local1)
{
    Puts("OnBookmarkAdd was called!");
    return (object) null;
}
  • Called when a player tries to select a bookmark at a computer station.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ComputerStation.BeginControllingBookmark of Assembly-CSharp.dll.

Example
object OnBookmarkControl(ComputerStation self, BasePlayer local0, string local1, IRemoteControllable local2)
{
    Puts("OnBookmarkControl was called!");
    return (object) null;
}
  • Called when a player tries to stop viewing/controlling an entity at a computer station.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ComputerStation.StopControl of Assembly-CSharp.dll.

Example
object OnBookmarkControlEnd(ComputerStation self, BasePlayer ply, BaseEntity local0)
{
    Puts("OnBookmarkControlEnd was called!");
    return (object) null;
}
  • Called after a player has stopped viewing/controlling an entity at a computer station.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ComputerStation.StopControl of Assembly-CSharp.dll.

Example
void OnBookmarkControlEnded(ComputerStation self, BasePlayer ply, BaseEntity local0)
{
    Puts("OnBookmarkControlEnded was called!");
}

This hook requires OnBookmarkControlEnd, which loads alongside OnBookmarkControlEnded.

  • Called after a player has stopped viewing/controlling an entity at a computer station.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ComputerStation.BeginControllingBookmark of Assembly-CSharp.dll.

Example
void OnBookmarkControlEnded(ComputerStation self, BasePlayer local0, IRemoteControllable local6)
{
    Puts("OnBookmarkControlEnded was called!");
}

This hook requires OnBookmarkControlStarted, which loads alongside OnBookmarkControlEnded.

  • Called after a player has selected a bookmark at a computer station.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ComputerStation.BeginControllingBookmark of Assembly-CSharp.dll.

Example
void OnBookmarkControlStarted(ComputerStation self, BasePlayer local0, string local1, IRemoteControllable local2)
{
    Puts("OnBookmarkControlStarted was called!");
}

This hook requires OnBookmarkControl, which loads alongside OnBookmarkControlStarted.

  • Called when a player tries to delete a bookmark at a computer station.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ComputerStation.DeleteBookmark of Assembly-CSharp.dll.

Example
object OnBookmarkDelete(ComputerStation self, BasePlayer local0, string local1)
{
    Puts("OnBookmarkDelete was called!");
    return (object) null;
}
  • Called when input is received from a player who is using a computer station with a bookmark selected.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ComputerStation.PlayerServerInput of Assembly-CSharp.dll.

Example
object OnBookmarkInput(ComputerStation self, BasePlayer player, InputState inputState)
{
    Puts("OnBookmarkInput was called!");
    return (object) null;
}
  • Called when a player is being sent a list of bookmarks for a computer station.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ComputerStation.SendControlBookmarks of Assembly-CSharp.dll.

Example
object OnBookmarksSendControl(ComputerStation self, BasePlayer player, string local0)
{
    Puts("OnBookmarksSendControl was called!");
    return (object) null;
}

Last updated