Andres99907 Posted June 23, 2016 Share Posted June 23, 2016 ¡Hola! Estoy haciendo un servidor estilo Gta V y ahora el euros está tratando de imitar al "Vacca" que por cierto quedó muy bien pero no le hace ni frente a otros como el Turismo R ni Cheetah y quería cambiarle el Handling pero el lua no queda y jamás sale con el handling , el lua está de esta forma: function handling ( ) for _,veh in pairs(getElementsByType("vehicle")) do if getElementModel(veh) == 587 then setVehicleHandling (veh, "mass", 1600) setVehicleHandling(veh, "turnMass", 3921.3) setVehicleHandling(veh, "dragCoeff", 1.8 ) setVehicleHandling(veh, "centerOfMass", { 0, -0.4, 0 } ) setVehicleHandling(veh, "percentSubmerged", 75) setVehicleHandling(veh, "tractionMultiplier", 0.75) setVehicleHandling(veh, "tractionLoss", 0.85) setVehicleHandling(veh, "tractionBias", 0.52) setVehicleHandling(veh, "numberOfGears", 5) setVehicleHandling(veh, "maxVelocity", 400) setVehicleHandling(veh, "engineAcceleration", 20 ) setVehicleHandling(veh, "engineInertia", 10) setVehicleHandling(veh, "driveType", "rwd") setVehicleHandling(veh, "engineType", "petrol") setVehicleHandling(veh, "brakeDeceleration", 10) setVehicleHandling(veh, "brakeBias", 0.53) setVehicleHandling(veh, "steeringLock", 35) setVehicleHandling(veh, "suspensionForceLevel", 1.3) setVehicleHandling(veh, "suspensionDamping", 0.12) setVehicleHandling(veh, "suspensionHighSpeedDamping", 0) setVehicleHandling(veh, "suspensionUpperLimit", 0.28 ) setVehicleHandling(veh, "suspensionLowerLimit", -0.12) setVehicleHandling(veh, "suspensionFrontRearBias", 0.38 ) setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0) setVehicleHandling(veh, "seatOffsetDistance", 0.2) setVehicleHandling(veh, "collisionDamageMultiplier", 0.24) setVehicleHandling(veh, "monetary", 25000) setVehicleHandling(veh, "modelFlags", 0x40000000) setVehicleHandling(veh, "handlingFlags", 0x10200008 ) setVehicleHandling(veh, "headLight", 0) setVehicleHandling(veh, "tailLight", 1) setVehicleHandling(veh, "animGroup", 0) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handling ) Link to comment
Castillo Posted June 23, 2016 Share Posted June 23, 2016 Porque haces un loop de todos los vehiculos? Link to comment
Mr.Aleks Posted June 23, 2016 Share Posted June 23, 2016 Me pregunto lo mismo, no es necesario comprobar todos los vehículos, ya que ese evento ya te da el elemento. Link to comment
Recommended Posts