mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Fix #2852: add optional 'property' parameter to getVehicleHandling function

Open XJMLN opened this issue 1 year ago • 1 comments

Fixes #2852

Added optional 'property' argument to get particular vehicle handling value.

Usage: getVehicleHandling(vehicle, "mass")

XJMLN avatar Sep 07 '23 19:09 XJMLN

I don't understand why the code (handling in general) has to "guess" what type each property is. All we need is an array for each entry in enum eHandlingProperty to tell you what the underlying type for the property is, because the type never changes.

botder avatar Sep 17 '23 15:09 botder

Thanks!

Dutchman101 avatar Jul 30 '24 22:07 Dutchman101