Jump to content

TuneShop stuff


Captain Cody

Recommended Posts

Posted

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?

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

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