Witam ot?? je?eli ustawiam warto?? jak? ma pojazdowi doda? to np jak dodamy do s24 +6 do vmax, oraz do s26 +8 do vmaxu pojazdy jad? tyle samo
kod
[lua] if tonumber(s18) ~= 0 then
local fast1 = getVehicleHandlingProperty(veh,"engineAcceleration")
local maxfast1 = getVehicleHandlingProperty(veh,"maxVelocity")
setVehicleHandling(veh,"engineAcceleration",fast1+1)
setVehicleHandling(veh,"maxVelocity",maxfast1+1)
end
if tonumber(s20) ~= 0 then
local fast11 = getVehicleHandlingProperty(veh,"engineAcceleration")
local maxfast11 = getVehicleHandlingProperty(veh,"maxVelocity")
setVehicleHandling(veh,"engineAcceleration",fast11+1.1)
setVehicleHandling(veh,"maxVelocity",maxfast11+2)
end
if tonumber(s22) ~= 0 then
local fast2 = getVehicleHandlingProperty(veh,"engineAcceleration")
local maxfast2 = getVehicleHandlingProperty(veh,"maxVelocity")
setVehicleHandling(veh,"engineAcceleration",fast2+1.2)
setVehicleHandling(veh,"maxVelocity",maxfast2+2)
end
if tonumber(s24) ~= 0 then
local fast3 = getVehicleHandlingProperty(veh,"engineAcceleration")
local maxfast3 = getVehicleHandlingProperty(veh,"maxVelocity")
setVehicleHandling(veh,"engineAcceleration",fast3+1.3)
setVehicleHandling(veh,"maxVelocity",maxfast3+2.5 )
end
if tonumber(s26) ~= 0 then
loc... |