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.

OnBoomboxStationUpdate

  • 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 BoomBox , string String , BasePlayer BasePlayer )
{
    Puts("OnBoomboxStationUpdate was called!");
    return (object) null;
}

OnBoomboxStationUpdated

  • 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 BoomBox , string String , BasePlayer BasePlayer )
{
    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 String )
{
    Puts("OnBoomboxStationValidate was called!");
    return (bool) null;
}

OnBoomboxToggle

  • 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 BoomBox , BasePlayer BasePlayer , bool Boolean )
{
    Puts("OnBoomboxToggle was called!");
    return (object) null;
}

OnRfBroadcasterAdd

  • 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 IRFObject , int Int32 )
{
    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 IRFObject , int Int32 )
{
    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 IRFObject , int Int32 )
{
    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 IRFObject , int Int32 )
{
    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 RFBroadcaster , int Int32 , BasePlayer BasePlayer )
{
    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 RFReceiver , int Int32 , BasePlayer BasePlayer )
{
    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 Detonator , int Int32 , BasePlayer BasePlayer )
{
    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 PagerEntity , int Int32 , BasePlayer BasePlayer )
{
    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 RFBroadcaster , int Int32 , BasePlayer BasePlayer )
{
    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 RFReceiver , int Int32 , BasePlayer BasePlayer )
{
    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 Detonator , int Int32 , BasePlayer BasePlayer )
{
    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 PagerEntity , int Int32 , BasePlayer BasePlayer )
{
    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 IRFObject , int Int32 )
{
    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 IRFObject , int Int32 )
{
    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 IRFObject , int Int32 )
{
    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 IRFObject , int Int32 )
{
    Puts("OnRfListenerRemoved was called!");
}

This hook requires OnRfListenerRemove, which loads alongside OnRfListenerRemoved.

Last updated