Skip to content

Commit

Permalink
refactor(harness/client): better item check
Browse files Browse the repository at this point in the history
  • Loading branch information
BerkieBb authored Jan 19, 2022
1 parent 120d27f commit a8ad645
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -684,13 +684,7 @@ CreateThread(function()
DisplayRadar(true)
end
wasInVehicle = true
QBCore.Functions.TriggerCallback('hud:server:HasHarness', function(hasItem)
if hasItem then
harness = true
else
harness = false
end
end, "harness")
harness = QBCore.Functions.HasItem('harness')
updatePlayerHud({
show,
Menu.isDynamicHealthChecked,
Expand Down

0 comments on commit a8ad645

Please sign in to comment.