PaiN^ Posted March 24, 2013 Share Posted March 24, 2013 Hi, How can i use that function with the centerMass property ? I need an example ! And Thanx .. Link to comment
Blaawee Posted March 24, 2013 Share Posted March 24, 2013 what do you mean by how to use it ! maybe this will help you https://forum.multitheftauto.com/viewtopic.php?f=160&t=54062#p523870 Link to comment
PaiN^ Posted March 24, 2013 Author Share Posted March 24, 2013 what do you mean by how to use it ! The syntax is: bool setVehicleHandling ( element theVehicle, string property, var value ) It says in the wiki that the value of the centerMass property is a table . I want an example of how to do that !, I tried this but it didn't work : local Table = { [0.1] = posX, [0.3] = posZ, [-0.15] = posY } setVehicleHandling ( theVehicle, 'centerMass', Table ) No errors in debug ! Link to comment
DiSaMe Posted March 24, 2013 Share Posted March 24, 2013 local Table = {0.1, 0.3, -0.15} Link to comment
PaiN^ Posted March 24, 2013 Author Share Posted March 24, 2013 local Table = {0.1, 0.3, -0.15} Working, Thank you ! 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