From 29af7e113f8365815500748fa7d63431bc801a34 Mon Sep 17 00:00:00 2001 From: Artur Michalak <36608116+ArturMichalak@users.noreply.github.com> Date: Wed, 24 Apr 2024 02:58:27 +0200 Subject: [PATCH] fix: vehicle pushing --- qbx_vehiclepush/client.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qbx_vehiclepush/client.lua b/qbx_vehiclepush/client.lua index ebc78a1..1909722 100644 --- a/qbx_vehiclepush/client.lua +++ b/qbx_vehiclepush/client.lua @@ -73,9 +73,9 @@ CreateThread(function() if cache.vehicle or #(pedCoords - vehicleCoords) > 3 or not IsVehicleSeatFree(vehicle, -1) - or GetVehicleEngineHealth(vehicle) < 0 - or GetVehicleEngineHealth(vehicle) > config.damageNeeded - or (Entity(vehicle).state.fuel or 100) > 3 + or not ((GetVehicleEngineHealth(vehicle) >= 0 + and GetVehicleEngineHealth(vehicle) <= config.damageNeeded) + or (Entity(vehicle).state.fuel or 100) < 3) then break end end end