Skip to content

Commit

Permalink
fix: vehicle pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-michalak authored Apr 24, 2024
1 parent bd44037 commit 29af7e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qbx_vehiclepush/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29af7e1

Please sign in to comment.