Jump to content

Hand nao funciona


Recommended Posts

coloquei uma handling na lamborguini huracan, que substitui o infernus(ID 411)

mas a hand simplesmente nao quer funcionar, queria sabe o porque, e e so em alguns carros que nao vai, porque em outros carros ela funciona nao sei porque.

 

local ID = 411
addEventHandler("onVehicleEnter", root,
function ()
    local veh = source
    if getElementModel(veh) == ID then
       setVehicleHandling(veh, "mass", 1300)
       setVehicleHandling(veh, "turnMass", 3400)
       setVehicleHandling(veh, "dragCoeff", 2)
       setVehicleHandling(veh, "centerOfMass", { 0, 0.1, -0.2 } )
       setVehicleHandling(veh, "percentSubmerged", 85)
       setVehicleHandling(veh, "tractionMultiplier", 1.3)
       setVehicleHandling(veh, "tractionLoss", 0.8)
       setVehicleHandling(veh, "tractionBias", 0.5)
       setVehicleHandling(veh, "numberOfGears", 5)
       setVehicleHandling(veh, "maxVelocity", 280)
       setVehicleHandling(veh, "engineAcceleration", 19.2)
       setVehicleHandling(veh, "engineInertia", 3)
       setVehicleHandling(veh, "driveType", "awd")
       setVehicleHandling(veh, "engineType", "petrol")
       setVehicleHandling(veh, "brakeDeceleration", 15)
       setVehicleHandling(veh, "brakeBias", 0.55)
       setVehicleHandling(veh, "ABS", 1)
    end
end)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...