mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-12-03 04:04:46 +00:00
Fix hunger being wrong on esx when consuming
This commit is contained in:
1 parent
2a4de6fdc1
commit
60c42b2506
1 file changed
+1
-1
+1
-1
@@ -321,7 +321,7 @@ RegisterNetEvent(getScript()..':Consume', function(itemName)
|
|||||||
hunger = hunger > 100 and 100 or hunger
|
hunger = hunger > 100 and 100 or hunger
|
||||||
|
|
||||||
elseif ESX and ESX.GetPlayerData then
|
elseif ESX and ESX.GetPlayerData then
|
||||||
hunger = (needStats.thirst / 100) * 1000000
|
hunger = (needStats.hunger / 100) * 1000000
|
||||||
hunger = hunger > 1000000 and 1000000 or hunger
|
hunger = hunger > 1000000 and 1000000 or hunger
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user