Skip to content

Commit

Permalink
fix(client/init): replace obsolete fuel check with DoesVehicleUseFuel
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jul 14, 2024
1 parent d6c2d0b commit 70432ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ RegisterCommand('startfueling', function()
elseif petrolCan then
local vehicle = utils.getVehicleInFront()

if vehicle then
local hasFuel = config.classUsage[GetVehicleClass(vehicle)] or true

if hasFuel == 0.0 then return end
if vehicle and DoesVehicleUseFuel(vehicle) then

local boneIndex = utils.getVehiclePetrolCapBoneIndex(vehicle)
local fuelcapPosition = boneIndex and GetWorldPositionOfEntityBone(vehicle, boneIndex)
Expand Down

0 comments on commit 70432ec

Please sign in to comment.