Need help with Customizable money printers

Hi!, I got a problem with my printers…
After a restart on the server, the printers I buy will not stop at 100% give money and reset the %.
So I just wonder if someone know what might be the problem.

https://gyazo.com/dcfbcc6e77ef8d5968001f76dc6dc278



AddCSLuaFile()

-- BASE SETTINGS

ENT.Base      = "base_money_printer"
ENT.Type      = "anim"
ENT.Spawnable = false
ENT.AdminOnly = false

-- MAIN SETTINGS

ENT.Author         = "husho"
ENT.PrintName      = "Standard Money Printer"
ENT.PrinterColor   = Color(69, 198, 84, 255)
ENT.Pages          = {"General", "Upgrades", "Statistics"}
ENT.SparkingEffect = false

-- SOUND SETTINGS

-- Will printer make printing sound ?
ENT.MakePrintingSound = true
-- Volume of this sound
ENT.SoundLevel = 40

-- DISPLAY SETTINGS

if CLIENT then
	-- GENERAL BOXES CHANGES
	
	ENT.BoxesRadiusCorner = 5
	ENT.ShadowEnabled = false
	ENT.ShadowColor = Color(0, 0, 0, 100)

	-- TOP MENU
	
	ENT.NameOwnerBoxColor = Color(0, 0, 0, 100)
	ENT.NameTextColor     = Color(230, 230, 230, 255)
	ENT.OwnerTextColor    = Color(230, 230, 230, 255)
	
	-- MIDDLE MENU
	
	ENT.PageBoxColor  = Color(0, 0, 0, 100)
	ENT.PageTextColor = Color(230, 230, 230, 255)
	
	-- BOTTOM MENU
	
	ENT.ButtonsBoxColor  = Color(0, 0, 0, 100)
	ENT.CurPageTextColor = Color(230, 230, 230, 255)
	
	-- BUTTONS
	
	ENT.ButtonsColor        = Color(250, 250, 250, 100)
	ENT.ButtonsColorHovered = Color(250, 250, 250, 200)
	ENT.ButtonsTextColor    = Color(230, 230, 230, 255)
	
	-- BATTERY
	
	ENT.BatteryBoxColor  = Color(0, 0, 0, 150)
	ENT.BatteryBgColor   = Color(230, 230, 230, 255)
	ENT.BatteryTextColor = Color(230, 230, 230, 255)
	
	-- SPECIALS
	
	-- Color of the "Withdraw" text
	ENT.WithdrawText = Color(70, 90, 240, 255)
	-- Color of the "Cool" text
	ENT.CoolingText = Color(0, 200, 200, 255)
	-- Color of the upgrades text
	ENT.UpgradeCostText = Color(0, 140, 0, 255)
	-- Color of the "turn off" text
	ENT.TurnOffText = Color(180, 0, 0, 255) -- new, added in 3.0
	-- Color of the "turn on" text
	ENT.TurnOnText = Color(0, 150, 0, 255) -- new, added in 3.0
end

-- TURN ON/OFF

-- Allow players to turn on/off their printers
ENT.TurnOnOffEnabled = true -- new, added in 3.0

-- PRINTING SPEED

-- Time used to print money (decreases over upgrades)
ENT.PrintingSpeed = 30
-- Time takes the printer to reload
ENT.ReloadingTime = 3
-- Will the printer have speed upgrade?
ENT.UpgradablePrintingSpeed = true

-- SPEED LEVELS

ENT.PrintingSpeedLevels = {
	{LevelName = "None",    NameColor = Color(155, 255, 255, 255), Multiplier = 1,   MoneyToUpgrade = 0},
	{LevelName = "Level 2", NameColor = Color(155, 240, 240, 255),  Multiplier = 1.1, MoneyToUpgrade = 200},
	{LevelName = "Level 2", NameColor = Color(155, 220, 220, 255), Multiplier = 1.2,   MoneyToUpgrade = 200},
	{LevelName = "Level 3", NameColor = Color(155, 200, 200, 255),   Multiplier = 1.3,   MoneyToUpgrade = 200},
	{LevelName = "Level 4", NameColor = Color(155, 164, 164, 255), Multiplier = 1.4,   MoneyToUpgrade = 200},
	{LevelName = "Level 5", NameColor = Color(155, 130, 130, 255),   Multiplier = 1.5,   MoneyToUpgrade = 200},
	{LevelName = "Level 6", NameColor = Color(155, 100, 100, 255),   Multiplier = 1.6,   MoneyToUpgrade = 200},
	{LevelName = "Level 7", NameColor = Color(155, 90, 90, 255),   Multiplier = 1.7,   MoneyToUpgrade = 200},
	{LevelName = "Level 8", NameColor = Color(155, 70, 70, 255),   Multiplier = 1.8,   MoneyToUpgrade = 200},
	{LevelName = "Level 9", NameColor = Color(155, 46, 46, 255),   Multiplier = 1.9,   MoneyToUpgrade = 200},
	{LevelName = "Level 10", NameColor = Color(155, 23, 23, 255),   Multiplier = 2,   MoneyToUpgrade = 200}
}

-- PRINTER STORAGE

-- Will the printer allow storage ?
ENT.InPrinterStorage = true
-- Will the printer drop money when full ?
ENT.PrintOutsideIfFull = false
-- Will the printer have infinite storage ? (nice feature for VIP printers)
ENT.InfinitePrinterStorage = false
-- Default amount of money that can be stored in the printer (increases with upgrades)
ENT.DefaultMaxMoneyStorage = 10000
 -- Will the printer have storage upgrade ?
ENT.UpgradablePrinterStorage = true

-- Storage Levels
ENT.PrinterStorageLevels = {
	{LevelName = "None",    NameColor = Color(155, 255, 255, 255), Multiplier = 1,   MoneyToUpgrade = 0},
	{LevelName = "Level 2", NameColor = Color(155, 240, 240, 255),  Multiplier = 1.1, MoneyToUpgrade = 200},
	{LevelName = "Level 2", NameColor = Color(155, 220, 220, 255), Multiplier = 1.2,   MoneyToUpgrade = 200},
	{LevelName = "Level 3", NameColor = Color(155, 200, 200, 255),   Multiplier = 1.3,   MoneyToUpgrade = 200},
	{LevelName = "Level 4", NameColor = Color(155, 164, 164, 255), Multiplier = 1.4,   MoneyToUpgrade = 200},
	{LevelName = "Level 5", NameColor = Color(155, 130, 130, 255),   Multiplier = 1.5,   MoneyToUpgrade = 200},
	{LevelName = "Level 6", NameColor = Color(155, 100, 100, 255),   Multiplier = 1.6,   MoneyToUpgrade = 200},
	{LevelName = "Level 7", NameColor = Color(155, 90, 90, 255),   Multiplier = 1.7,   MoneyToUpgrade = 200},
	{LevelName = "Level 8", NameColor = Color(155, 70, 70, 255),   Multiplier = 1.8,   MoneyToUpgrade = 200},
	{LevelName = "Level 9", NameColor = Color(155, 46, 46, 255),   Multiplier = 1.9,   MoneyToUpgrade = 200},
	{LevelName = "Level 10", NameColor = Color(155, 23, 23, 255),   Multiplier = 2,   MoneyToUpgrade = 200}
}

-- PRINTING QUALITY

-- Amount of money printed (increased with upgrades)
ENT.PrintMoney = 20
-- Will the printer have quality upgrades ?
ENT.UpgradablePrintingQuality = true

-- QUALITY LEVELS

ENT.PrintingQualityLevels = {
	{LevelName = "None",    NameColor = Color(155, 255, 255, 255), Multiplier = 1,   MoneyToUpgrade = 0},
	{LevelName = "Level 2", NameColor = Color(155, 240, 240, 255),  Multiplier = 1.1, MoneyToUpgrade = 200},
	{LevelName = "Level 2", NameColor = Color(155, 220, 220, 255), Multiplier = 1.2,   MoneyToUpgrade = 200},
	{LevelName = "Level 3", NameColor = Color(155, 200, 200, 255),   Multiplier = 1.3,   MoneyToUpgrade = 200},
	{LevelName = "Level 4", NameColor = Color(155, 164, 164, 255), Multiplier = 1.4,   MoneyToUpgrade = 200},
	{LevelName = "Level 5", NameColor = Color(155, 130, 130, 255),   Multiplier = 1.5,   MoneyToUpgrade = 200},
	{LevelName = "Level 6", NameColor = Color(155, 100, 100, 255),   Multiplier = 1.6,   MoneyToUpgrade = 200},
	{LevelName = "Level 7", NameColor = Color(155, 90, 90, 255),   Multiplier = 1.7,   MoneyToUpgrade = 200},
	{LevelName = "Level 8", NameColor = Color(155, 70, 70, 255),   Multiplier = 1.8,   MoneyToUpgrade = 200},
	{LevelName = "Level 9", NameColor = Color(155, 46, 46, 255),   Multiplier = 1.9,   MoneyToUpgrade = 200},
	{LevelName = "Level 10", NameColor = Color(155, 23, 23, 255),   Multiplier = 2,   MoneyToUpgrade = 200}
}

-- PRINTER TEMPERATURE AND COOLING

-- Will the printer explode when get damaged ?
ENT.CreateExplosionWhenDestroy = true
-- Will the printer have temperature status ?
ENT.EnableTemperature = true 
-- Will the printer have cooling upgrades ?
ENT.UpgradableCooling = true 
-- The metric system displayed on the temperature
ENT.TemperatureMetricSystem = "C"
-- Printer temperature on spawn
ENT.TemperatureOnSpawn = 20
-- Maximum temperature of the printer
ENT.DeathTemperature = 100
-- Cooling temperature (increases with upgrades)
ENT.CoolingTemperature = 1
-- Cooling time needed (decreases with upgrades)
ENT.CoolingTime = 30
-- Heating temperature (decreasing with upgrades)
ENT.HeatingTemperature = 0.05
-- Time in ticks the printer will burn before blowing up (better leave it at that)
ENT.BurningTime = 20

-- COOLING LEVELS

ENT.CoolingLevels = {
	{LevelName = "None",    NameColor = Color(255, 255, 255, 255), CoolingMultiplier = 1,   CoolingTimeDivider = 1, HeatingDivider = 1,  MoneyToUpgrade = 0,     AutoCooling = false},
	{LevelName = "Level 1", NameColor = Color(184, 115, 51, 255),  CoolingMultiplier = 1.5, CoolingTimeDivider = 2, HeatingDivider = 3,  MoneyToUpgrade = 200,  AutoCooling = false},
	{LevelName = "Level 2", NameColor = Color(229, 228, 226, 255), CoolingMultiplier = 2,   CoolingTimeDivider = 3, HeatingDivider = 5,  MoneyToUpgrade = 200,  AutoCooling = false},
	{LevelName = "Level 3", NameColor = Color(255, 215, 0, 255),   CoolingMultiplier = 3,   CoolingTimeDivider = 3, HeatingDivider = 8,  MoneyToUpgrade = 200,  AutoCooling = false},
	{LevelName = "Level 4", NameColor = Color(185, 242, 255, 255), CoolingMultiplier = 4,   CoolingTimeDivider = 3, HeatingDivider = 12, MoneyToUpgrade = 200, AutoCooling = true},
	{LevelName = "Level 5", NameColor = Color(155, 17, 30, 255),   CoolingMultiplier = 6,   CoolingTimeDivider = 3, HeatingDivider = 15, MoneyToUpgrade = 200, AutoCooling = true}
}

-- PRINTER BATTERY

-- Will the printer run on a battery ?
ENT.EnableBattery = false
-- Maximum battery power
ENT.MaxBatteryValue = 500
-- Battery power on spawn
ENT.BatteryValueOnSpawn = 500
-- Will the printer use battery when printing ?
ENT.WasteEnergyOnPrinting = true
-- How much power will the battery use when printing ?
ENT.WastingAmountOnPrinting = 0.01 
-- Will the printer use battery power when cooling ?
ENT.WasteEnergyOnCooling = true
-- How much power will the battery use when cooling ?
ENT.WastingAmountOnCooling = 0.3

[editline]9th February 2016[/editline]

So, for the people getting the same problem, I manage to solve it.

If you set


-- Will the printer run on a battery ?
ENT.EnableBattery = true

You have to remove the rest, or do somthing like this


//-- Maximum battery power
//ENT.MaxBatteryValue = 500
//-- Battery power on spawn
//ENT.BatteryValueOnSpawn = 500
//-- Will the printer use battery when printing ?
//ENT.WasteEnergyOnPrinting = true
//-- How much power will the battery use when printing ?
//ENT.WastingAmountOnPrinting = 0.01 
//-- Will the printer use battery power when cooling ?
//ENT.WasteEnergyOnCooling = true
//-- How much power will the battery use when cooling ?
//ENT.WastingAmountOnCooling = 0.3