TIGS98 Posted July 23, 2015 Share Posted July 23, 2015 Hello friends of the community, I'm with some difficulty, and I hope someone can help me. Well, I would like to know a way to modify the default handling of the vehicle, is an example: data.lua hand = { {BANSHEE 1400 3000 2 0 0 -0.2 70 1 0.89 0.5 5 220 16 10 r p 8 0.52 false 34 1.6 0.1 5 0.3 -0.15 0.5 0.3 0.15 0.49 45000 0 0 1 1 1}, {BARRACKS 10500 61407.5 4 0 0 0 90 0.65 0.7 0.47 5 75 8 2 4 d 4 0.4 true 27 1.2 0.05 0 0.47 -0.17 0.5 0 0.62 0.26 10000 0 8800 0 1 2} } hand.lua for i, v in pairs ( hand ) do code [...] end Link to comment
TIGS98 Posted July 23, 2015 Author Share Posted July 23, 2015 And for this export format? BANSHEE 1400 3000 2 0 0 -0.2 70 1 0.89 0.5 5 220 16 10 rp 8 0.52 false 34 1.6 0.1 5 0.3 -0.15 0.5 0.3 0.15 0.49 45000 0 0 1 1 1 Link to comment
GTX Posted July 23, 2015 Share Posted July 23, 2015 Use this http://www.gtamodding.com/wiki/Handling ... an_Andreas local vehicles = {{"Banshee", 1400, 3000, 2, 0, 0, -0.2, 70, 1, 0.89, 0.5, 5, 220, 16, 10, "rp", 8, 0.52, false, 34, 1.6, 0.1, 5, 0.3, -0.15, 0.5, 0.3, 0.15, 0.49, 45000, 0, 0, 1, 1, 1}} for i, v in ipairs(vehicles) do local vehicle = getVehicleModelFromName(v[1]) setModelHandling(vehicle, "mass", v[2]) -- v[2] is fMass based on the website I sent you. setModelHandling(vehicle, "turnMass", v[3]) -- v[3] is fTurnMass based on the website I sent you. end Continue from here by yourself. Link to comment
TIGS98 Posted July 24, 2015 Author Share Posted July 24, 2015 Hello GTX, thank you brother, helped me a lot! Thanks to MADEX well. 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