Skip to content

OnBoomboxStationUpdate

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnBoomboxStationUpdate( BoomBox instance, string text, BasePlayer player )
{
    Puts( "OnBoomboxStationUpdate works!" );
    return null;
}

Location

  • BoomBox::Server_UpdateRadioIP(BaseEntity.RPCMessage msg)
csharp
public void Server_UpdateRadioIP(BaseEntity.RPCMessage msg)
{
	string text = msg.read.String();
	if (Interface.CallHook("OnBoomboxStationUpdate", this, text, msg.player) == null && IsStationValid(text))
	{
		if (msg.player != null)
		{
			ulong assignedRadioBy = msg.player.userID.Get();
			AssignedRadioBy = assignedRadioBy;
//---

Released under the MIT License.