fix e450 ambo and add new livery for it , fix lights

This commit is contained in:
KingMcDonalds
2022-05-04 11:40:42 -07:00
parent 46cac12a14
commit 1ea722d5bf
4 changed files with 13 additions and 23 deletions
BIN
View File
Binary file not shown.
+10 -20
View File
@@ -179,8 +179,7 @@ AddEventHandler('iens:repair', function()
healthEngineLast=1000.0
healthPetrolTankLast=1000.0
SetVehicleEngineOn(vehicle, true, false )
exports['EGRP-Notifications']:CaptionIcon("Vehicle System", "Mechanic has repaired your vehicle!", "top", 3000, "dark", "", true, "mdi-wrench")
--notification("~g~The mechanic repaired your car!")
notification("~g~The mechanic repaired your car!")
return
end
if GetVehicleEngineHealth(vehicle) < cfg.cascadingFailureThreshold + 5 then
@@ -192,23 +191,19 @@ AddEventHandler('iens:repair', function()
healthPetrolTankLast=750.0
SetVehicleEngineOn(vehicle, true, false )
SetVehicleOilLevel(vehicle,(GetVehicleOilLevel(vehicle)/3)-0.5)
exports['EGRP-Notifications']:CaptionIcon("Vehicle System", ""..repairCfg.fixMessages[fixMessagePos]..", now get to a mechanic!", "top", 3000, "dark", "", true, "mdi-wrench")
--notification("~g~" .. repairCfg.fixMessages[fixMessagePos] .. ", now get to a mechanic!")
notification("~g~" .. repairCfg.fixMessages[fixMessagePos] .. ", now get to a mechanic!")
fixMessagePos = fixMessagePos + 1
if fixMessagePos > repairCfg.fixMessageCount then fixMessagePos = 1 end
else
exports['EGRP-Notifications']:Negative("System", "Vehicle too badly damaged, unable to repair!", "top", 3000, true)
--notification("~r~Your vehicle was too badly damaged. Unable to repair!")
notification("~r~Your vehicle was too badly damaged. Unable to repair!")
end
else
exports['EGRP-Notifications']:Warning("System", ""..repairCfg.noFixMessages[noFixMessagePos].."!", "top", 3000, true)
--notification("~y~" .. repairCfg.noFixMessages[noFixMessagePos] )
notification("~y~" .. repairCfg.noFixMessages[noFixMessagePos] )
noFixMessagePos = noFixMessagePos + 1
if noFixMessagePos > repairCfg.noFixMessageCount then noFixMessagePos = 1 end
end
else
exports['EGRP-Notifications']:Negative("System", "You must be in a vehicle to repair it!", "top", 3000, true)
--notification("~y~You must be in a vehicle to be able to repair it")
notification("~y~You must be in a vehicle to be able to repair it")
end
end)
@@ -224,8 +219,7 @@ AddEventHandler('iens:fix', function()
healthEngineLast=1000.0
healthPetrolTankLast=1000.0
SetVehicleEngineOn(vehicle, true, false )
exports['EGRP-Notifications']:CaptionIcon("Vehicle System", "Mechanic has repaired your vehicle!", "top", 3000, "dark", "", true, "mdi-wrench")
--notification("~g~The mechanic repaired your car!")
notification("~g~The mechanic repaired your car!")
return
end
if GetVehicleEngineHealth(vehicle) < cfg.cascadingFailureThreshold + 5 then
@@ -237,23 +231,19 @@ AddEventHandler('iens:fix', function()
healthPetrolTankLast=750.0
SetVehicleEngineOn(vehicle, true, false )
SetVehicleOilLevel(vehicle,(GetVehicleOilLevel(vehicle)/3)-0.5)
exports['EGRP-Notifications']:CaptionIcon("Vehicle System", ""..repairCfg.fixMessages[fixMessagePos]..", now get to a mechanic!", "top", 3000, "dark", "", true, "mdi-wrench")
--notification("~g~" .. repairCfg.fixMessages[fixMessagePos] .. ", now get to a mechanic!")
notification("~g~" .. repairCfg.fixMessages[fixMessagePos] .. ", now get to a mechanic!")
fixMessagePos = fixMessagePos + 1
if fixMessagePos > repairCfg.fixMessageCount then fixMessagePos = 1 end
else
exports['EGRP-Notifications']:Negative("System", "Vehicle too badly damaged, unable to repair!", "top", 3000, true)
--notification("~r~Your vehicle was too badly damaged. Unable to repair!")
notification("~r~Your vehicle was too badly damaged. Unable to repair!")
end
else
exports['EGRP-Notifications']:Warning("System", ""..repairCfg.noFixMessages[noFixMessagePos].."!", "top", 3000, true)
--notification("~y~" .. repairCfg.noFixMessages[noFixMessagePos] )
notification("~y~" .. repairCfg.noFixMessages[noFixMessagePos] )
noFixMessagePos = noFixMessagePos + 1
if noFixMessagePos > repairCfg.noFixMessageCount then noFixMessagePos = 1 end
end
else
exports['EGRP-Notifications']:Negative("System", "You must be in a vehicle to repair it!", "top", 3000, true)
--notification("~y~You must be in a vehicle to be able to repair it")
notification("~y~You must be in a vehicle to be able to repair it")
end
end)
@@ -520,7 +520,7 @@
<Probabilities />
</plateProbabilities>
<lightSettings value="1" />
<sirenSettings value="1050" />
<sirenSettings value="8989898999" />
</Item>
</variationData>
</CVehicleModelInfoVariation>