Skip to content

Commit

Permalink
Fixed stupid bug that suddenly appeared out of nowhere, seriously wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
TomGrobbe committed Sep 7, 2018
1 parent b137f9a commit 0eb208c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vMenu/CommonFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,13 @@ public async void SpawnVehicle(uint vehicleHash, bool spawnInside, bool replaceP

// Set the previous vehicle to the new vehicle.
previousVehicle = vehicle;
vehicle.Speed = speed;
vehicle.CurrentRPM = rpm;
//vehicle.Speed = speed; // retarded feature that randomly breaks for no fucking reason
if (!vehicle.Model.IsTrain) // to be extra fucking safe
{
// workaround of retarded feature above:
SetVehicleForwardSpeed(vehicle.Handle, speed);
}
//vehicle.CurrentRPM = rpm; // probably breaks shit too in the future, might as well remove it now.

// Discard the model.
SetModelAsNoLongerNeeded(vehicleHash);
Expand Down

0 comments on commit 0eb208c

Please sign in to comment.