Hello!
I am new at MTA Scripting and I want to ask you, why vehicles don't fix using my code:
function AutoFix()
vehicles = getElementsByType ( "vehicle" )
for vehicleKey,vehicleValue in ipairs(vehicles) do
fixVehicle ( vehicleValue )
setElementHealth ( vehicleValue, 1000.0 )
end
end
setTimer(AutoFix,1000,1)
I am using just MTA editor to make maps, so I need just this command. Any help will be great.