public static void VehicleInfos(Player sender, int id = -1) { if (!sender.AccountData.HavePerm("admin.cmds.vehicle.infos")) { throw new Exception("Vous n'avez pas les permissions pour cela."); } Vehicle veh = CmdHelper.GetCurrentVehicleOrID(sender, id); var strings = CmdHelper.DisplayAdminInfos(veh); Chat.AdminChat(sender, "======= Infos du véhicule ======="); foreach (string line in strings) { Chat.AdminChat(sender, line); } }