mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-16 22:16:02 +01:00
Fix hunger being wrong on esx when consuming
This commit is contained in:
@@ -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