Vehicle::setEngineTorqueMultiplier

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

<1.0 - Decreased torque
=1.0 - Default torque
>1.0 - Increased torque

Negative values will cause the vehicle to go backwards instead of forwards while accelerating.

value - is between 0.2 and 1.8 in the decompiled scripts.

This needs to be called every frame to take effect.

Syntax

vehicle.setEngineTorqueMultiplier(value);

Required Arguments

  • value: float

Return value

  • Undefined

Example

Client-Side
mp.events.add('render', () => {
    let vehicle = mp.players.local.vehicle;
    vehicle.setEngineTorqueMultiplier(1.5); // Multiplies by 1.5 the engine torque
});

See also