if InductionPartSize<0 then InductionPartSize=0 elseif InductionPartSize>5 then InductionPartSize=5 end if WeightDistribution<0 then WeightDistribution=0 elseif WeightDistribution>100 then WeightDistribution=100 end if SteeringAngle>120 then SteeringAngle=120 elseif SteeringAngle<20 then SteeringAngle=20 end if TiresFront>3 then TiresFront=3 elseif TiresFront<1 then TiresFront=1 end if TiresRear>3 then TiresRear=3 elseif TiresRear<1 then TiresRear=1 end if DownforceF<0 then DownforceF=0 elseif DownforceF>5 then DownforceF=5 end if DownforceR<0 then DownforceR=0 elseif DownforceR>5 then DownforceR=5 end if EngineType=="\069\108\101\099\116\114\105\099"then TransmissionType="\065\117\116\111\109\097\116\105\099"InductionPartSize=0 end if BrakeBias>100 then BrakeBias=100 elseif BrakeBias<0 then BrakeBias=0 end if SteerSpeed>.1 then SteerSpeed=.1 elseif SteerSpeed<.02 then SteerSpeed=.02 end if BrakePower>100 then BrakePower=100 elseif BrakePower<0 then BrakePower=0 end if AmountOfGears>8 then AmountOfGears=8 elseif AmountOfGears<1 then AmountOfGears=1 end if TransmissionType~="\072\080\097\116\116\101\114\110"and(TransmissionType~="\065\117\116\111\109\097\116\105\099"and(TransmissionType~="\068\117\097\108\067\108\117\116\099\104"and TransmissionType~="\067\086\084"))then TransmissionType="\065\117\116\111\109\097\116\105\099"end if Drivetrain~="\065\087\068"and(Drivetrain~="\070\087\068"and Drivetrain~="\082\087\068")then Drivetrain="\070\087\068"end if TorqueSplit>100 then TorqueSplit=100 elseif TorqueSplit<0 then TorqueSplit=0 end if Drivetrain=="\082\087\068"then TorqueSplit=100 DifferentialF=0 elseif Drivetrain=="\070\087\068"then TorqueSplit=0 DifferentialR=0 DifferentialF=0 end if DifferentialF>1 then DifferentialF=1 elseif DifferentialF<0 then DifferentialF=0 end if DifferentialR>1 then DifferentialR=1 elseif DifferentialR<0 then DifferentialR=0 end if Gear1>5 then Gear1=5 elseif Gear1<.1 then Gear1=.1 end if Gear2>5 then Gear2=5 elseif Gear2<.1 then Gear2=.1 end if Gear3>5 then Gear3=5 elseif Gear3<.1 then Gear3=.1 end if Gear4>5 then Gear4=5 elseif Gear4<.1 then Gear4=.1 end if Gear5>5 then Gear5=5 elseif Gear5<.1 then Gear5=.1 end if Gear6>5 then Gear6=5 elseif Gear6<.1 then Gear6=.1 end if Gear7>5 then Gear7=5 elseif Gear7<.1 then Gear7=.1 end if Gear8>5 then Gear8=5 elseif Gear8<.1 then Gear8=.1 end if FinalDrive>5 then FinalDrive=1.08 elseif FinalDrive<.1 then FinalDrive=5.98 end if EngineIdle>1600 then EngineIdle=1600 elseif EngineIdle<300 then EngineIdle=300 end if RideHeightFront>5 then RideHeightFront=5 elseif RideHeightFront<0 then RideHeightFront=0 end if RideHeightRear>5 then RideHeightRear=5 elseif RideHeightRear<0 then RideHeightRear=0 end if StiffnessFront>10 then StiffnessFront=10 elseif StiffnessFront<0 then StiffnessFront=0 end if StiffnessRear>10 then StiffnessRear=10 elseif StiffnessRear<0 then StiffnessRear=0 end if AntiRollFront>10 then AntiRollFront=10 elseif AntiRollFront<0 then AntiRollFront=0 end if AntiRollRear>10 then AntiRollRear=10 elseif AntiRollRear<0 then AntiRollRear=0 end if CamberFront>10 then CamberFront=10 elseif CamberFront<-11 then CamberFront=-11 end if CamberRear>10 then CamberRear=10 elseif CamberRear<-11 then CamberRear=-11 end if EngineType=="\069\108\101\099\116\114\105\099"then EngineRedline=16200 end

if InductionPartSize < 0 then
	InductionPartSize  = 0
elseif InductionPartSize > 5 then
	InductionPartSize = 5
end

if WeightDistribution < 0 then
	WeightDistribution  = 0
elseif WeightDistribution  > 100 then
	WeightDistribution = 100
end

if SteeringAngle > 120 then
	SteeringAngle = 120
elseif SteeringAngle < 20 then
	SteeringAngle = 20
end

if TiresFront > 3 then
	TiresFront = 3
elseif TiresFront < 1 then
	TiresFront = 1
end

if TiresRear  > 3 then
	TiresRear  = 3
elseif TiresRear  < 1 then
	TiresRear  = 1
end

if DownforceF < 0 then
	DownforceF = 0
elseif DownforceF > 5 then
	DownforceF  = 5
end

if DownforceR  < 0 then
	DownforceR  = 0
elseif DownforceR  > 5 then
	DownforceR   = 5
end

if EngineType == "Electric" then
	TransmissionType = "Automatic"
	InductionPartSize = 0
end

if BrakeBias > 100 then
	BrakeBias  = 100
elseif BrakeBias  < 0 then
	BrakeBias = 0
end

if SteerSpeed > 0.1 then
	SteerSpeed = 0.1
elseif SteerSpeed < 0.02 then
	SteerSpeed = 0.02
end

if BrakePower > 100 then
	BrakePower = 100
elseif BrakePower < 0 then
	BrakePower = 0
end

if AmountOfGears > 8 then
	AmountOfGears  = 8
elseif AmountOfGears < 1 then
	AmountOfGears = 1
end

if TransmissionType ~= "HPattern" and TransmissionType ~= "Automatic" and TransmissionType ~= "DualClutch" and TransmissionType ~= "CVT" then
TransmissionType = "Automatic"
end

if Drivetrain ~= "AWD" and Drivetrain ~= "FWD" and Drivetrain ~= "RWD" then
	Drivetrain = "FWD"
end

if TorqueSplit > 100 then
	TorqueSplit = 100
elseif TorqueSplit < 0 then
	TorqueSplit = 0
end

if Drivetrain == "RWD" then
	TorqueSplit = 100
	DifferentialF = 0
elseif Drivetrain == "FWD" then
	TorqueSplit = 0
	DifferentialR = 0
	DifferentialF = 0
end

if DifferentialF > 1 then
	DifferentialF  = 1
elseif DifferentialF < 0 then
	DifferentialF = 0
end

if DifferentialR > 1 then
	DifferentialR = 1
elseif DifferentialR  < 0 then
	DifferentialR = 0
end

if Gear1 > 5 then
	Gear1 = 5
elseif Gear1 < 0.1 then
	Gear1 = 0.1
end

if Gear2 > 5 then
	Gear2 = 5
elseif Gear2 < 0.1 then
	Gear2 = 0.1
end

if Gear3 > 5 then
	Gear3 = 5
elseif Gear3 < 0.1 then
	Gear3 = 0.1
end

if Gear4 > 5 then
	Gear4 = 5
elseif Gear4 < 0.1 then
	Gear4 = 0.1
end

if Gear5 > 5 then
	Gear5 = 5
elseif Gear5 < 0.1 then
	Gear5 = 0.1
end

if Gear6 > 5 then
	Gear6 = 5
elseif Gear6 < 0.1 then
	Gear6 = 0.1
end

if Gear7 > 5 then
	Gear7 = 5
elseif Gear7 < 0.1 then
	Gear7 = 0.1
end

if Gear8 > 5 then
	Gear8 = 5
elseif Gear8 < 0.1 then
	Gear8 = 0.1
end

if FinalDrive > 5 then
	FinalDrive = 6.08 - 5
elseif FinalDrive < 0.1 then
	FinalDrive = 6.08 - 0.1
end

if EngineIdle > 1600 then
	EngineIdle = 1600
elseif EngineIdle < 300 then
	EngineIdle = 300
end

if RideHeightFront > 5 then
	RideHeightFront = 5 
elseif RideHeightFront < 0 then
	RideHeightFront = 0
end

if RideHeightRear > 5 then
	RideHeightRear = 5 
elseif RideHeightRear < 0 then
	RideHeightRear = 0
end

if StiffnessFront > 10 then
	StiffnessFront = 10 
elseif StiffnessFront < 0 then
	StiffnessFront = 0
end

if StiffnessRear > 10 then
	StiffnessRear = 10
elseif StiffnessRear < 0 then
	StiffnessRear = 0
end

if AntiRollFront > 10 then
	AntiRollFront = 10 
elseif AntiRollFront < 0 then
	AntiRollFront = 0
end

if AntiRollRear > 10 then
	AntiRollRear = 10 
elseif AntiRollRear < 0 then
	AntiRollRear = 0
end

if CamberFront > 10 then
	CamberFront = 10 
elseif CamberFront < -11 then
	CamberFront = -11
end

if CamberRear > 10 then
	CamberRear = 10 
elseif CamberRear < -11 then
	CamberRear = -11
end

if EngineType == "Electric" then
 EngineRedline = 16200
end