Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 3514e36

Browse files
committed
fix(client): don't set state.invBusy
Likely causing a bug that prevents entering vehicles (see #42). Race condition? Progressbar handles this internally anyway.
1 parent 7ac6b62 commit 3514e36

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

client.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ local function startFueling(vehicle, isPump)
259259
end
260260

261261
local function getPetrolCan(pumpCoord, refuel)
262-
LocalPlayer.state.invBusy = true
263262
TaskTurnPedToFaceCoord(cache.ped, pumpCoord, Config.petrolCan.duration)
264263
Wait(500)
265264

@@ -284,8 +283,6 @@ local function getPetrolCan(pumpCoord, refuel)
284283

285284
TriggerServerEvent('ox_fuel:fuelCan', false, Config.petrolCan.price)
286285
end
287-
288-
LocalPlayer.state.invBusy = false
289286
end
290287

291288
if not Config.qtarget then

0 commit comments

Comments
 (0)