Hallo,
ich möchte von bestimmten Fraktionsauto den Antrieb ändern. Allerdings überschreibt er es wenn ich es so mache wie unten auf jedes Fahrzeug.
Lua: egal
local function addFactionVehicleUpgrades(veh, faction, model)
vioSetElementData ( veh, "sportmotor", ( faction == 10 and 3 or 2 ) )
vioSetElementData ( veh, "bremse", ( faction == 10 and 3 or 2 ) )
if model == 552 then
setVehicleHandling(car, "engineAcceleration", 19)
setVehicleHandling(car, "maxVelocity", 250)
elseif model == 456 then
setVehicleHandling(car, "engineAcceleration", 20)
setVehicleHandling(car, "maxVelocity", 250)
elseif model == 596 or 598 or 599 or 597 or 601 or 411 or 528 or 490 or 427 then
vioSetElementData ( veh, "antrieb", "awd" )
end
end
Alles anzeigen