Diablomta Posted January 19, 2017 Share Posted January 19, 2017 ¿Hola, queria preguntarle a todos en esta comunidad si me ayudan con un handling, osea darle mas velocidad a un vehiculo cual ID es 602 el Alpha quisiera ponerle velocidad a ese vehiculo pero e tratado y no puedo me ayudan porfavor!? Link to comment
Diablomta Posted January 20, 2017 Author Share Posted January 20, 2017 Tengo esto pero no me funciona function applyVehicleSpecials(vehicle) local vehID = getElementModel(vehicle) if vehID == 602 or vehID == 602 then setVehicleHandling(vehicle, "mass", 1500) setVehicleHandling(vehicle, "turnMass", 1500) setVehicleHandling(vehicle, "dragCoeff", 2) setVehicleHandling(vehicle, "centerOfMass", { 0, 0.1, -0.2 } ) setVehicleHandling(vehicle, "percentSubmerged", 85) setVehicleHandling(vehicle, "tractionMultiplier", 1.2) setVehicleHandling(vehicle, "tractionLoss", 1.2) setVehicleHandling(vehicle, "tractionBias", 0.5) setVehicleHandling(vehicle, "numberOfGears", 5) setVehicleHandling(vehicle, "maxVelocity", 320) setVehicleHandling(vehicle, "engineAcceleration", 50) setVehicleHandling(vehicle, "engineInertia", 1.5) setVehicleHandling(vehicle, "driveType", "awd") setVehicleHandling(vehicle, "engineType", "Petrol") setVehicleHandling(vehicle, "brakeDeceleration", 100000) setVehicleHandling(vehicle, "brakeBias", 0.55) elseif vehID == 602 then setElementData(vehicle, "vehicleType", "PremiumCar") local handlingTable = getVehicleHandling ( vehicle ) local newVelocity = ( handlingTable["maxVelocity"] + ( handlingTable["maxVelocity"] / 100 * 40 ) ) setVehicleHandling ( vehicle, "numberOfGears", 5 ) setVehicleHandling ( vehicle, "driveType", 'awd' ) setVehicleHandling ( vehicle, "maxVelocity", newVelocity ) setVehicleHandling ( vehicle, "engineAcceleration", handlingTable["engineAcceleration"] +8 ) end end Link to comment
#Dv^ Posted January 20, 2017 Share Posted January 20, 2017 addEventHandler("onVehicleEnter", root, function(p) local vehicle = getPedOccupiedVehicle(p) if getElementModel(vehicle) == 429 then -- Banshee setVehicleHandling(vehicle, "maxVelocity", 400.0) setVehicleHandling(vehicle, "engineAcceleration", 25 ) end end ) 2 Link to comment
BluRay Posted March 6, 2017 Share Posted March 6, 2017 (edited) y si quiero que el auto sea 4x4 como hago? On 19/1/2017 at 22:56, #Dv^ said: addEventHandler("onVehicleEnter", root, function(p) local vehicle = getPedOccupiedVehicle(p) if getElementModel(vehicle) == 429 then -- Banshee setVehicleHandling(vehicle, "maxVelocity", 400.0) setVehicleHandling(vehicle, "engineAcceleration", 25 ) end end ) Edited March 6, 2017 by BluRay Link to comment
Recommended Posts