smooth throttle reaktiviert

This commit is contained in:
hydrant
2021-04-06 20:33:51 +02:00
parent a95ed206cf
commit f0ca0306e5

View File

@@ -9,7 +9,7 @@
export default function smoothThrottle() {
let GlobalDisable = false;
let DisableAntiReverse = true;
let DisableAntiReverse = false;
let DisableSmoothThrottle = false;
let BrakeSystem = false;
@@ -47,7 +47,7 @@ export default function smoothThrottle() {
return;
if (BrakeSystem) {
if (mp.players.local.vehicle !== null) {
if (mp.players.local.vehicle && mp.vehicles.exists(mp.players.local.vehicle)) {
if (!mp.players.local.vehicle.isSeatFree(-1)) //only do this if the vehicle has a driver (doesn't have to be the player who is rendering this)
{
//Optimize function calls to variables (probably doesn't make a difference)