Captain Cody Posted December 13, 2015 Share Posted December 13, 2015 I'm currently working on a tuning shop for my server, but the question I have is how I would go about changing the hex values. For set model handling stuff. Any idea on how I would be able to do this correctly? Link to comment
Captain Cody Posted December 13, 2015 Author Share Posted December 13, 2015 or one thing I have not really bothered to check if I know how, How I get the vehicles MaxSpeed, gears etc. using getVehicleHandling I just get a table, cannot figure out how to convert that table into maxspeed, accleration, gears, what not. Link to comment
Buffalo Posted December 14, 2015 Share Posted December 14, 2015 You should check out hedit resource. Getting specified field in table is table["field"] So in this case getVehicleHanding(theVehicle)['maxVelocity'] See wiki getVehicleHandling for all the field. Link to comment
Captain Cody Posted December 14, 2015 Author Share Posted December 14, 2015 Oh I was doing it right, I just forgot the paraphrases.. But does any one know how I would go about doing the first part, I did check hedit but parts for it are scattered all around the resource. Link to comment
Captain Cody Posted December 14, 2015 Author Share Posted December 14, 2015 How would I spilt the handling flags / model flags, so I can set the values of the bytes individually? Link to comment
.:HyPeX:. Posted December 15, 2015 Share Posted December 15, 2015 Try to running a loop to output all keys into the chat. i.e. for key,value in pairs(handlingTable) do outputChatBox(key) end About the separation into parts.. i guess the hedit does it manually. Link to comment
Captain Cody Posted December 15, 2015 Author Share Posted December 15, 2015 Well the question I have is how would I separate it, I figured out how to set the tables and stuff, just need to figure out how to divide the handingflags and model flags. Link to comment
Tails Posted December 15, 2015 Share Posted December 15, 2015 Cody, read my reply to your other post about vehicleHandling. It should give you some more insight on this matter. Here: https://forum.multitheftauto.com/viewtopic.php?f=91&t=94812 In the code you can see the properties are 'seperated' from the table. Link to comment
Captain Cody Posted December 15, 2015 Author Share Posted December 15, 2015 I already figured out how to pull the properties from the table, I need to figure out how to seperate the 6 or so digits of the handling/model tags so I can set the wider wheels, 1G_Boost 2G_Boost etc. modelFlags Property uses a decimal value, generated by a hexadecimal value. Either use 0x12345678 or tonumber ( "0x12345678" ). See projectcerbera for possible values. handlingFlags Property uses a decimal value, generated by a hexadecimal value. Either use 0x12345678 or tonumber ( "0x12345678" ). See projectcerbera for possible values. 16 bytes, every 4 are packed in each 2 digits. Though when one number hits 10, it's changed to a letter "hex crap" the question is how I would be able to change the digits correctly. 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