Jump to content

Me ajudem nessa handling por favor


Recommended Posts

Bom eu fiz uma hand para as viaturas do meu servidor, mas alguma função está fazendo ela capotar na primeira curva e eu não sei qual é. Bom preciso que alguem me ajude a concertar essa hand e fazer com que ela faça o contrario, que ela não capote fácil. Quem poder me ajudar editando ela eu agradeço dms

 

function loadHandling2(v)

----- HAND
            
                        if getElementModel(v) == 596 then
                setVehicleHandling(v, "mass", 1000)
                setVehicleHandling(v, "turnMass", 3000)
                setVehicleHandling(v, "dragCoeff", 2)
                setVehicleHandling(v, "centerOfMass", { 0, 0.3, 0.1 } )
                setVehicleHandling(v, "percentSubmerged", 75)
                setVehicleHandling(v, "tractionMultiplier", 0.7)
                setVehicleHandling(v, "tractionLoss", 1.2)
                setVehicleHandling(v, "tractionBias", 0.52)
                setVehicleHandling(v, "numberOfGears", 5)
                setVehicleHandling(v, "maxVelocity", 240)
                setVehicleHandling(v, "engineAcceleration", 17)
                setVehicleHandling(v, "engineInertia", 20)
                setVehicleHandling(v, "driveType", "awd")
                setVehicleHandling(v, "engineType", "petrol")
                setVehicleHandling(v, "brakeDeceleration", 9999)
                setVehicleHandling(v, "ABS", false)
                setVehicleHandling(v, "steeringLock", 35)
                setVehicleHandling(v, "suspensionForceLevel", 1)
                setVehicleHandling(v, "suspensionDamping", 0.1)
                setVehicleHandling(v, "suspensionHighSpeedDamping", 0.)
                setVehicleHandling(v, "suspensionUpperLimit", 0.3)
                setVehicleHandling(v, "suspensionLowerLimit", -0.05)
                setVehicleHandling(v, "suspensionFrontRearBias", 0.4)
                setVehicleHandling(v, "suspensionAntiDiveMultiplier", 0.5)
                setVehicleHandling(v, "seatOffsetDistance", 0.2)
                setVehicleHandling(v, "collisionDamageMultiplier", 1)
                setVehicleHandling(v, "monetary", 25000)
                setVehicleHandling(v, "modelFlags", 0x40000001)
                setVehicleHandling(v, "handlingFlags", 0x10308803)
                setVehicleHandling(v, "headLight", 0)
                setVehicleHandling(v, "tailLight", 1)
                setVehicleHandling(v, "animGroup", 0)
                     end
end

function loadHandlings2()
    for k, v in ipairs(getElementsByType("vehicle")) do
        loadHandling2(v)
    end
end
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), loadHandlings2)

addEventHandler("onVehicleEnter", root, function(player)

    --setVehicleHandling(source, false)

    loadHandling2(source)
end)


--[[
function resetHandling()
     for k, v in ipairs(getElementsByType("vehicle")) do
         for k1,v1 in ipairs(setModelHandling(getVehicleModel(v))) do
            -- setVehicleHandling(v, k1, nil)
         end
     end
 end
 addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), resetHandling)]]--

Link to post

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...