Set cruise control on current speed

This commit is contained in:
Vortrex
2022-09-06 06:58:47 -05:00
parent cd6e9fe509
commit 2bdc656d57

View File

@@ -131,14 +131,13 @@ function setAllVehicleDataIndexes() {
// ===========================================================================
function toggleVehicleCruiseControl(vehicle) {
if (!vehicle.isSyncer) {
function toggleLocalVehicleCruiseControl() {
if (!localPlayer.vehicle.isSyncer) {
return false;
}
cruiseControl = !cruiseControl;
cruiseControlSpeed = getVehicleSpeed(vehicle);
}
// ===========================================================================