Fix qbox getPlayer hunger and thirst calls

This commit is contained in:
Jim Shield
2025-10-23 13:19:04 +01:00
parent 9ec7bddfe6
commit a9403e5513
3 changed files with 6 additions and 6 deletions

View File

@@ -420,7 +420,7 @@ function makeItem(origData)
for k, v in pairs(data.craft[data.item]) do
if isInventoryOpen() then
print("^1Error^7: ^2Inventory is open, you tried to break things")
stopCam(0)
stopCam(100)
ClearPedTasks(Ped)
if canReturn then craftingMenu(origData) end
CraftLock = false
@@ -524,7 +524,7 @@ function makeItem(origData)
end
--Wait(500)
stopCam(0)
stopCam(100)
CraftLock = false
if canReturn then craftingMenu(origData) end
ClearPedTasks(Ped)

View File

@@ -171,7 +171,7 @@ function stopTempCam(renderTime)
clearLoadLocation()
Wait(renderTime or 0)
Wait(renderTime or 500)
for i = 1, #camCache do
DestroyCam(camCache[i], true)
end

View File

@@ -221,7 +221,7 @@ local billPlayerFunc = {
function(data)
TriggerEvent("codem-billing:client:OpenMenu")
end,
tgg =
tgg =
function(data)
exports["tgg-billing"]:OpenBillingMenu()
end,
@@ -727,8 +727,8 @@ local getPlayerFunc = {
isDead = info.PlayerData.metadata["isdead"],
isDown = info.PlayerData.metadata["inlaststand"],
charInfo = info.charinfo,
hunger = info.metadata["hunger"],
thirst = info.metadata["thirst"],
hunger = info.PlayerData.metadata["hunger"],
thirst = info.PlayerData.metadata["thirst"],
}
return Player
end,