Skip to content

Commit

Permalink
Fixed nitrous freezing hud
Browse files Browse the repository at this point in the history
  • Loading branch information
loljoshie authored Jan 23, 2022
1 parent 71bd606 commit 2455df8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ RegisterNetEvent('hud:server:RelieveStress', function(amount)
TriggerClientEvent('QBCore:Notify', src, Lang:t("notify.stress_removed"))
end)

QBCore.Functions.CreateCallback('hud:server:HasHarness', function(source, cb)
local Ply = QBCore.Functions.GetPlayer(source)
local Harness = Ply.Functions.GetItemByName("harness")
if Harness ~= nil then
cb(true)
else
cb(false)
end
end)
QBCore.Functions.CreateCallback('hud:server:getMenu', function(source, cb)
cb(Config.Menu)
end)
end)

0 comments on commit 2455df8

Please sign in to comment.