public void OnSetRadioSpeaker(GTANetworkAPI.Client player, string toggleString) { bool toggle = String.Equals(toggleString, "true", StringComparison.OrdinalIgnoreCase); VoiceManager.SetRadioSpeaker(player, toggle); player.SendChatMessage("Speaker", $"The speaker is now {(toggle ? "on" : "off")}."); }
public void OnLeaveRadioChannel(GTANetworkAPI.Client player, string channelName) { VoiceManager.LeaveRadioChannel(player, channelName); player.SendChatMessage("Radio", $"You left channel \"{channelName}\"."); }