Jump to content

[Solved] modelFlags and handlingFlags for Infernus


RaduHD

Recommended Posts

Posted (edited)

I've been trying to add all Infernus(ID:411) stats to Bullet(ID:451). So that I can have like two infernus cars but with different modelsThe script is working fine but there are two lines that I'm stuck at

I'm using the stats that I found here for the infernus: http://gta.wikia.com/wiki/Vehicle_Stats ... an_Andreas

And here is the code.. (I know it won't work because modelflags and handlingflags are supposed to be decimal) but I have no idea where to get that decimal code from.I know that there is inside the handling.dat but I have no idea how to translate it.

setVehicleHandling(veh, "modelFlags", 40002004) 
        setVehicleHandling(veh, "handlingFlags", "C04000" ) 

According to the wiki - Property uses a decimal value, generated by a hexadecimal value. Either use 0x12345678 or tonumber ( "0x12345678" ). See projectcerbera for possible values , but ALSO in the example shown is

setVehicleHandling(v, "modelFlags", 1002000) 
        setVehicleHandling(v, "handlingFlags", 1000002) 

.

but I've seen a lot of other scripts that use it like this: (from other scripts) but I don't know where to get that 0xXXXXX value from).

setVehicleHandling(veh, "modelFlags", 0x40000000) 
        setVehicleHandling(veh, "handlingFlags", 0x10200008 ) 

Thank's for reading and please help me :)

Edited by Guest
Posted

Oh my gosh. I'm such a newbie.

All I had to do is add 0X before the numbers for wiki.

So.. here's the final thing

setVehicleHandling(veh, "modelFlags", 0x40002004) 
        setVehicleHandling(veh, "handlingFlags", 0xC04000 ) 

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