Skip to content

Commit b5aa774

Browse files
refactor: replace isHotwiring to isShowHotwiringLabelRunning
1 parent 169c06c commit b5aa774

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/main.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ local areKeysJobShared = functions.areKeysJobShared
1919
-----------------------
2020

2121
local isTakingKeys = false
22-
local isHotwiring = false
2322
local isCarjackingAvailable = true
2423

2524
-----------------------
@@ -171,9 +170,10 @@ local function findKeys(vehicle, plate)
171170
end)
172171
end
173172

173+
local isShowHotwiringLabelRunning = false
174174
local function showHotwiringLabel()
175-
if isHotwiring then return end
176-
isHotwiring = true
175+
if isShowHotwiringLabelRunning then return end
176+
isShowHotwiringLabelRunning = true
177177
CreateThread(function()
178178
-- Hotwiring while in vehicle, also keeps engine off for vehicles you don't own keys to
179179
while cache.vehicle do
@@ -196,7 +196,7 @@ local function showHotwiringLabel()
196196
end
197197
end
198198
end)
199-
isHotwiring = false
199+
isShowHotwiringLabelRunning = false
200200
end
201201

202202
local function carjackVehicle(target)

0 commit comments

Comments
 (0)