Update consumables.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-10-24 16:24:37 -07:00
1 parent d2fdf7298d
commit b796b6eff9
1 file changed
+1 -1
+1 -1
View File
@@ -19,7 +19,7 @@ RegisterNetEvent('md-drugs:server:removeconsum', function(item)
end) end)
RegisterNetEvent('md-drugs:server:updatestatus', function(stat, statval) RegisterNetEvent('md-drugs:server:updatestatus', function(stat, statval)
print(stat,statval)
local Player = QBCore.Functions.GetPlayer(source) local Player = QBCore.Functions.GetPlayer(source)
if stat == "thirst" then if stat == "thirst" then
local value = Player.PlayerData.metadata.thirst + statval local value = Player.PlayerData.metadata.thirst + statval