altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Manual transmission

Open mrgharabaghi opened this issue 1 year ago • 0 comments

Description of the problem

In order to setup manual transmission for vehicles, we need to change the current behavior of gears.

All we need is to prevent vehicles from automatically changing gears. Especially from 0 to 1 and 1 to 0.

Currently I'm using native.setTransmissionReducedGearRatio. This native only disables gear shifting from 1 to n and n to 1 and doesn't affect on 1 to 0 and 0 to 1.

In the other word, gear shifting is still automatic from 0 to 1 and 1 to 0.

Desired solution for the problem

export class Vehicle extends Entity {
    public manualTransmission: boolean;
}

Alternatives you considered

No response

Additional context

No response

mrgharabaghi avatar Sep 13 '24 06:09 mrgharabaghi