Permalink
Browse files

Fixed stupid bug that suddenly appeared out of nowhere, seriously wtf

  • Loading branch information...
TomGrobbe committed Sep 7, 2018
1 parent b137f9a commit 0eb208c1d58355e28874fa565feafc7de454ee2c
Showing with 7 additions and 2 deletions.
  1. +7 −2 vMenu/CommonFunctions.cs
@@ -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);

0 comments on commit 0eb208c

Please sign in to comment.