[C#]Error when trying to set Handling field

When trying to set fieldssend me an err



API.SetVehicleHandlingField(v.Handle, “CHandlingData”, "fMass ", 10000);
API.SetVehicleHandlingInt(v.Handle, “CHandlingData”, “nInitialDriveGears”, 2);
API.SetVehicleHandlingFloat(v.Handle, “CHandlingData”, "fSteeringLock ", 1.5f);
API.SetVehicleHandlingVector(v.Handle, “CHandlingData”, "vecInertiaMultiplier ", new Vector3(0, 10, 3.5f));

You have a comma in "fMass "

Still doesn’t explain this I believe :thinking:.

Moving this to #development:scripts

thnks.
But what about Unsupported fields type ? in nInitialDriveGears??

Unfortunately, I have no experience with vehicle handling.

For some reason you cannot fetch nInitialDriveGears unfortunately. Which I encoutered making some manual transmission resource: [Discussion/Research] Manual transmission resource

I was following the manual transmission discussions and I do think there’s a bug here somewhere

https://github.com/citizenfx/fivem/blob/7567b5d3025762c695ab27e9afc39dc979c33a0a/code/components/handling-loader-five/src/HandlingLoader.cpp#L72

It would be interesting to pop into the debugger and see what’s going on but I haven’t built FiveM locally from source yet… maybe it’s time.

The unsupported type ? error message you’re getting for nInitialDriveGears may be a clue.

The other two fields really don’t appear to be supported, it looks like FiveM have only implemented a subset of the fields, you can find them in the HandlingLoader class, you may want to post a feature request to get them added.