Skip to content

setModelWheelSize to set vehicle model wheel size #719

@Grafu

Description

@Grafu

Is your feature request related to a problem? Please describe.
I'm always frustrated when I'm replacing car models and the wheel size does not match the original model (wheels stick into the ground).

Describe the solution you'd like
I'd love MTA to have a function something like setModelWheelSize (or even setVehicleWheelSize) to set vehicle/model wheel sizes.

Describe alternatives you've considered
I do not see any alternatives for this, except matching custom model to original model considering wheel sizes. This is very frustrating and I run out of matching car slots fast. + They are not perfectly matched.

Additional context
Attaching googled memory address offsets for vehicle wheel sizes: https://pastebin.com/mt7eLw0Z
According to this source, wheel memory addresses have offset +1112 [Float] from vehicle pointer (ctrl + f Car Wheel Size). Considering this context...

+1108 [DWord] modding data as in garage info
+1112 [Float] Car Wheel Size from vehicle.ide
+1116 [DWord] Time left for car alarm to sound in ms
+1120 [DWord] Pointer to driver

...neighbour values of Car Wheel Size are DWords offset every 4 bytes. But Car Wheel Size is Float instead of DWord I guess it is 2 bytes and there are 2 wheel sizes (front and rear) in that position??

Mantis: https://bugs.multitheftauto.com/view.php?id=7441

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions