mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-11-25 16:58:35 +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
|
||||
|
||||
elseif ESX and ESX.GetPlayerData then
|
||||
hunger = (needStats.thirst / 100) * 1000000
|
||||
hunger = (needStats.hunger / 100) * 1000000
|
||||
hunger = hunger > 1000000 and 1000000 or hunger
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user