AnonymuseN Posted February 25, 2015 Share Posted February 25, 2015 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. Link to comment
xXMADEXx Posted February 25, 2015 Share Posted February 25, 2015 You can only change handling on a server you can upload resources to. Use either setVehicleHandling or setModelHandling. Link to comment
#RooTs Posted February 26, 2015 Share Posted February 26, 2015 if I understand well, try using my example 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) Link to comment
Banex Posted February 26, 2015 Share Posted February 26, 2015 if I understand well, try using my example 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 Link to comment
#RooTs Posted February 26, 2015 Share Posted February 26, 2015 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 Link to comment
xeon17 Posted February 26, 2015 Share Posted February 26, 2015 Nobody said that it doesn't work He only wanted to show you a way to do it easier and better. Link to comment
Banex Posted February 26, 2015 Share Posted February 26, 2015 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 i know it works. I think your google translator failed again and you didn't understand what i've said Link to comment
AnonymuseN Posted February 26, 2015 Author Share Posted February 26, 2015 Hello again. I saw your comments, but this isn't really what I asked about . 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? Link to comment
JR10 Posted February 26, 2015 Share Posted February 26, 2015 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. Link to comment
AnonymuseN Posted February 26, 2015 Author Share Posted February 26, 2015 So is there some other ways to do it? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now