Skip to content

Commit

Permalink
fix(client): clear armed and variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Jul 12, 2024
1 parent c84d7f3 commit f7471c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ CreateThread(function()
end)

local function isElectric(vehicle)
for _, v in pairs(config.fuelBlacklist) do
for _, v in pairs(config.electricVehicles) do
if GetEntityModel(vehicle) == GetHashKey(v) then
return true
end
Expand Down Expand Up @@ -1103,7 +1103,7 @@ lib.onCache('vehicle', function(value)
end)

lib.onCache('weapon', function(value)
if not value then return end
if not value then armed = false return end
armed = isWhitelistedWeaponArmed(value) and false or true
end)

Expand Down

0 comments on commit f7471c4

Please sign in to comment.