Skip to content

Commit a012517

Browse files
feat: break up client thread (#65)
* feat: break up client thread * chore: restore space before if anim * chore: remove breakline before toggleEngine * feat: remove LocalPlayer.state.isLoggedIn in showHotwiringLabel Co-authored-by: Solareon <769465+solareon@users.noreply.github.com> * feat: carjacking watcher to ox_lib:cache:weapon event handler * feat: isWatchCarjackingAttemptsRunning flag * refactor: replace isHotwiring to isShowHotwiringLabelRunning --------- Co-authored-by: Solareon <769465+solareon@users.noreply.github.com>
1 parent 1b210e1 commit a012517

File tree

2 files changed

+189
-144
lines changed

2 files changed

+189
-144
lines changed

client/functions.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ exports('HasKeys', public.hasKeys)
1818
---Checking weapon on the blacklist.
1919
---@return boolean? `true` if the vehicle is blacklisted, `nil` otherwise.
2020
function public.isBlacklistedWeapon()
21-
local weapon = GetSelectedPedWeapon(cache.ped)
2221
for i = 1, #config.noCarjackWeapons do
23-
if weapon == joaat(config.noCarjackWeapons[i]) then
22+
if cache.weapon == joaat(config.noCarjackWeapons[i]) then
2423
return true
2524
end
2625
end

0 commit comments

Comments
 (0)