Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Updated get fuel export to return 0 on bad vehicle handle
Browse files Browse the repository at this point in the history
  • Loading branch information
eoinmcbennett committed Oct 8, 2021
1 parent 1eed87e commit b779173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientfunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function CanFuelVehicle(Vehicle)
end

function GetFuel(vehicle)
if vehicle == 0 or vehicle == nil then return end
if vehicle == 0 or vehicle == nil then return 0 end
return GetVehicleFuelLevel(vehicle)
end

Expand Down

0 comments on commit b779173

Please sign in to comment.