Jump to content

MTA Modding - Improve vehicle performance


AnonymuseN

Recommended Posts

Posted

Hello,

I am playing in the race community of MTA, and I have a question:

Is it possible to make your car handling different on all servers? I think it's boring to have the same handling everywhere so that's why I would like to change it a little. Is it possible?

Thanks for answers.

Posted

if I understand well, try using my example :wink:

addEventHandler("onResourceStart",root, 
function () 
for _,veh in pairs(getElementsByType("vehicle")) do 
    if getElementModel(veh) == 411 then -- Vehicle model 
        setVehicleHandling(veh, "mass", 1400.0) 
setVehicleHandling(veh, "turnMass", 2725.3) 
setVehicleHandling(veh, "dragCoeff", 1.5) 
setVehicleHandling(veh, "centerOfMass", { 0.0, 0.0, -0.25 } ) 
setVehicleHandling(veh, "percentSubmerged", 70) 
setVehicleHandling(veh, "tractionMultiplier", 0.70) 
setVehicleHandling(veh, "tractionLoss", 0. 
setVehicleHandling(veh, "tractionBias", 0.50) 
setVehicleHandling(veh, "numberOfGears", 5) 
setVehicleHandling(veh, "maxVelocity", 240.0) 
setVehicleHandling(veh, "engineAcceleration", 30.0) 
setVehicleHandling(veh, "engineInertia", 10.0) 
setVehicleHandling(veh, "driveType", "awd") 
setVehicleHandling(veh, "engineType", "petrol") 
setVehicleHandling(veh, "brakeDeceleration", 11.0) 
setVehicleHandling(veh, "brakeBias", 0.51) 
setVehicleHandling(veh, "ABS", false) 
setVehicleHandling(veh, "steeringLock", 30.0) 
setVehicleHandling(veh, "suspensionForceLevel", 1.2) 
setVehicleHandling(veh, "suspensionDamping", 0.19) 
setVehicleHandling(veh, "suspensionHighSpeedDamping", 0.0) 
setVehicleHandling(veh, "suspensionUpperLimit", 0.25) 
setVehicleHandling(veh, "suspensionLowerLimit", -0.10) 
setVehicleHandling(veh, "suspensionFrontRearBias", 0.5) 
setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.4) 
setVehicleHandling(veh, "seatOffsetDistance", 0.37) 
setVehicleHandling(veh, "collisionDamageMultiplier", 0.72) 
setVehicleHandling(veh, "monetary", 95000) 
setVehicleHandling(veh, "modelFlags", 0x40002004) 
setVehicleHandling(veh, "handlingFlags", 0xC04000) 
setVehicleHandling(veh, "headLight", 0) 
setVehicleHandling(veh, "tailLight", 0) 
setVehicleHandling(veh, "animGroup", 1) 
        end 
    end 
end) 

Posted
if I understand well, try using my example :wink:
addEventHandler("onResourceStart",root, 
function () 
for _,veh in pairs(getElementsByType("vehicle")) do 
    if getElementModel(veh) == 411 then -- Vehicle model 
        setVehicleHandling(veh, "mass", 1400.0) 
setVehicleHandling(veh, "turnMass", 2725.3) 
setVehicleHandling(veh, "dragCoeff", 1.5) 
setVehicleHandling(veh, "centerOfMass", { 0.0, 0.0, -0.25 } ) 
setVehicleHandling(veh, "percentSubmerged", 70) 
setVehicleHandling(veh, "tractionMultiplier", 0.70) 
setVehicleHandling(veh, "tractionLoss", 0. 
setVehicleHandling(veh, "tractionBias", 0.50) 
setVehicleHandling(veh, "numberOfGears", 5) 
setVehicleHandling(veh, "maxVelocity", 240.0) 
setVehicleHandling(veh, "engineAcceleration", 30.0) 
setVehicleHandling(veh, "engineInertia", 10.0) 
setVehicleHandling(veh, "driveType", "awd") 
setVehicleHandling(veh, "engineType", "petrol") 
setVehicleHandling(veh, "brakeDeceleration", 11.0) 
setVehicleHandling(veh, "brakeBias", 0.51) 
setVehicleHandling(veh, "ABS", false) 
setVehicleHandling(veh, "steeringLock", 30.0) 
setVehicleHandling(veh, "suspensionForceLevel", 1.2) 
setVehicleHandling(veh, "suspensionDamping", 0.19) 
setVehicleHandling(veh, "suspensionHighSpeedDamping", 0.0) 
setVehicleHandling(veh, "suspensionUpperLimit", 0.25) 
setVehicleHandling(veh, "suspensionLowerLimit", -0.10) 
setVehicleHandling(veh, "suspensionFrontRearBias", 0.5) 
setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.4) 
setVehicleHandling(veh, "seatOffsetDistance", 0.37) 
setVehicleHandling(veh, "collisionDamageMultiplier", 0.72) 
setVehicleHandling(veh, "monetary", 95000) 
setVehicleHandling(veh, "modelFlags", 0x40002004) 
setVehicleHandling(veh, "handlingFlags", 0xC04000) 
setVehicleHandling(veh, "headLight", 0) 
setVehicleHandling(veh, "tailLight", 0) 
setVehicleHandling(veh, "animGroup", 1) 
        end 
    end 
end) 

would be better to use setModelHandling this case, and its function will be executed every time time a resource is started, for it to be performed only when the resource is started, change root for resourceRoot

Posted
would be better to use setModelHandling this case, and its function will be executed every time time a resource is started, for it to be performed only when the resource is started, change root for resourceRoot

for me it works without problems :wink:

Posted
would be better to use setModelHandling this case, and its function will be executed every time time a resource is started, for it to be performed only when the resource is started, change root for resourceRoot

for me it works without problems :wink:

i know it works. I think your google translator failed again and you didn't understand what i've said

Posted

Hello again.

I saw your comments, but this isn't really what I asked about xD.

I want to make my handling different in all servers, not only my own one, or my friend's server.

Handling.cfg doesn't work anymore, you can edit it however you like and it won't be like edited.

Any other suggestions?

Posted

Do you really expect custom client handling.cfg to work in MTA? Only servers can edit the handling, you can't edit your own handling.cfg.

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