Skip to content

Commit

Permalink
feat: food, water and stress from statebag (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-michalak authored May 30, 2024
1 parent 5615a76 commit 5ed2795
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ lib.callback.register('qbx_admin:server:getPlayers', function(source)
id = k,
cid = v.PlayerData.citizenid,
name = v.PlayerData.charinfo.firstname .. ' ' .. v.PlayerData.charinfo.lastname .. ' | (' .. GetPlayerName(k) .. ')',
food = v.PlayerData.metadata.hunger,
water = v.PlayerData.metadata.thirst,
stress = v.PlayerData.metadata.stress,
food = Player(v.PlayerData.source).state.hunger,
water = Player(v.PlayerData.source).state.thirst,
stress = Player(v.PlayerData.source).state.stress,
armor = v.PlayerData.metadata.armor,
phone = v.PlayerData.charinfo.phone,
craftingrep = v.PlayerData.metadata.craftingrep,
Expand All @@ -242,9 +242,9 @@ lib.callback.register('qbx_admin:server:getPlayer', function(source, playerToGet
id = playerToGet,
cid = playerData.citizenid,
name = playerData.charinfo.firstname .. ' ' .. playerData.charinfo.lastname .. ' | (' .. GetPlayerName(playerToGet) .. ')',
food = playerData.metadata.hunger,
water = playerData.metadata.thirst,
stress = playerData.metadata.stress,
food = Player(playerData.source).state.hunger,
water = Player(playerData.source).state.thirst,
stress = Player(playerData.source).state.stress,
armor = playerData.metadata.armor,
phone = playerData.charinfo.phone,
craftingrep = playerData.metadata.craftingrep,
Expand Down

0 comments on commit 5ed2795

Please sign in to comment.