Radio (20)

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.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches BoomBox.Server_UpdateRadioIP of Assembly-CSharp.dll.

Example
object OnBoomboxStationUpdate(BoomBox self, string local0, BasePlayer player)
{
    Puts("OnBoomboxStationUpdate was called!");
    return (object) null;
}
  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches BoomBox.Server_UpdateRadioIP of Assembly-CSharp.dll.

Example
void OnBoomboxStationUpdated(BoomBox self, string local0, BasePlayer player)
{
    Puts("OnBoomboxStationUpdated was called!");
}

This hook requires OnBoomboxStationUpdate, which loads alongside OnBoomboxStationUpdated.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches BoomBox.IsStationValid of Assembly-CSharp.dll.

Example
object OnBoomboxStationValidate(string url)
{
    Puts("OnBoomboxStationValidate was called!");
    return (bool) null;
}
  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches BoomBox.ServerTogglePlay of Assembly-CSharp.dll.

Example
object OnBoomboxToggle(BoomBox self, BasePlayer player, bool local0)
{
    Puts("OnBoomboxToggle was called!");
    return (object) null;
}
  • Called right before an object starts broadcasting an RF frequency.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFManager.AddBroadcaster of Assembly-CSharp.dll.

Example
object OnRfBroadcasterAdd(IRFObject obj, int frequency)
{
    Puts("OnRfBroadcasterAdd was called!");
    return (object) null;
}
  • Called right after an object has started broadcasting an RF frequency.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFManager.AddBroadcaster of Assembly-CSharp.dll.

Example
void OnRfBroadcasterAdded(IRFObject obj, int frequency)
{
    Puts("OnRfBroadcasterAdded was called!");
}

This hook requires OnRfBroadcasterAdd, which loads alongside OnRfBroadcasterAdded.

  • Called right before an object stops broadasting an RF frequency.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFManager.RemoveBroadcaster of Assembly-CSharp.dll.

Example
object OnRfBroadcasterRemove(IRFObject obj, int frequency)
{
    Puts("OnRfBroadcasterRemove was called!");
    return (object) null;
}
  • Called right after an object has stopped broadcasting an RF frequency.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFManager.RemoveBroadcaster of Assembly-CSharp.dll.

Example
void OnRfBroadcasterRemoved(IRFObject obj, int frequency)
{
    Puts("OnRfBroadcasterRemoved was called!");
}

This hook requires OnRfBroadcasterRemove, which loads alongside OnRfBroadcasterRemoved.

  • Called when a player tries to change the frequency of an RF broadcaster or receiver.

  • Useful for preventing particular reserved frequencies from being selected.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFBroadcaster.ServerSetFrequency of Assembly-CSharp.dll.

Example
object OnRfFrequencyChange(RFBroadcaster self, int local0, BasePlayer player)
{
    Puts("OnRfFrequencyChange was called!");
    return (object) null;
}
  • Called when a player tries to change the frequency of an RF broadcaster or receiver.

  • Useful for preventing particular reserved frequencies from being selected.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFReceiver.ServerSetFrequency of Assembly-CSharp.dll.

Example
object OnRfFrequencyChange(RFReceiver self, int local0, BasePlayer player)
{
    Puts("OnRfFrequencyChange was called!");
    return (object) null;
}
  • Called when a player tries to change the frequency of an RF broadcaster or receiver.

  • Useful for preventing particular reserved frequencies from being selected.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches Detonator.ServerSetFrequency of Assembly-CSharp.dll.

Example
object OnRfFrequencyChange(Detonator self, int freq, BasePlayer player)
{
    Puts("OnRfFrequencyChange was called!");
    return (object) null;
}
  • Called when a player tries to change the frequency of an RF broadcaster or receiver.

  • Useful for preventing particular reserved frequencies from being selected.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches PagerEntity.ServerSetFrequency of Assembly-CSharp.dll.

Example
object OnRfFrequencyChange(PagerEntity self, int local0, BasePlayer player)
{
    Puts("OnRfFrequencyChange was called!");
    return (object) null;
}
  • Called after a player has changed the frequency of an RF broadcaster or receiver.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFBroadcaster.ServerSetFrequency of Assembly-CSharp.dll.

Example
void OnRfFrequencyChanged(RFBroadcaster self, int local0, BasePlayer player)
{
    Puts("OnRfFrequencyChanged was called!");
}

This hook requires OnRfFrequencyChange [Broadcaster], which loads alongside OnRfFrequencyChanged.

  • Called after a player has changed the frequency of an RF broadcaster or receiver.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFReceiver.ServerSetFrequency of Assembly-CSharp.dll.

Example
void OnRfFrequencyChanged(RFReceiver self, int local0, BasePlayer player)
{
    Puts("OnRfFrequencyChanged was called!");
}

This hook requires OnRfFrequencyChange [Receiver], which loads alongside OnRfFrequencyChanged.

  • Called after a player has changed the frequency of an RF broadcaster or receiver.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches Detonator.ServerSetFrequency of Assembly-CSharp.dll.

Example
void OnRfFrequencyChanged(Detonator self, int freq, BasePlayer player)
{
    Puts("OnRfFrequencyChanged was called!");
}

This hook requires OnRfFrequencyChange [Detonator], which loads alongside OnRfFrequencyChanged.

  • Called after a player has changed the frequency of an RF broadcaster or receiver.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches PagerEntity.ServerSetFrequency of Assembly-CSharp.dll.

Example
void OnRfFrequencyChanged(PagerEntity self, int local0, BasePlayer player)
{
    Puts("OnRfFrequencyChanged was called!");
}

This hook requires OnRfFrequencyChange [PagerEntity], which loads alongside OnRfFrequencyChanged.

  • Called right before an object starts listening to an RF frequency.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFManager.AddListener of Assembly-CSharp.dll.

Example
object OnRfListenerAdd(IRFObject obj, int frequency)
{
    Puts("OnRfListenerAdd was called!");
    return (object) null;
}
  • Called right after an object has started listening to an RF frequency.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFManager.AddListener of Assembly-CSharp.dll.

Example
void OnRfListenerAdded(IRFObject obj, int frequency)
{
    Puts("OnRfListenerAdded was called!");
}

This hook requires OnRfListenerAdd, which loads alongside OnRfListenerAdded.

  • Called right before an object stops listening to an RF frequency.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFManager.RemoveListener of Assembly-CSharp.dll.

Example
object OnRfListenerRemove(IRFObject obj, int frequency)
{
    Puts("OnRfListenerRemove was called!");
    return (object) null;
}
  • Called right after an object has stopped listening to an RF frequency.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches RFManager.RemoveListener of Assembly-CSharp.dll.

Example
void OnRfListenerRemoved(IRFObject obj, int frequency)
{
    Puts("OnRfListenerRemoved was called!");
}

This hook requires OnRfListenerRemove, which loads alongside OnRfListenerRemoved.

Last updated