GetIsPlayerDead added

Added GetIsPlayerDead to framework serverside. Needs testing on esx and qbox
This commit is contained in:
gononono64 committed 2025-05-02 03:13:07 -05:00
1 parent df0dedd46c
commit 3c96d6a2bc
3 files changed
+20

No files matched your search

+7
View File
@@ -253,6 +253,13 @@ Framework.GetHunger = function(src)
return newHunger
end
Framework.GetIsPlayerDead = function(src)
local player = QBCore.Functions.GetPlayer(src)
if not player then return end
local playerData = player.PlayerData
return playerData.metadata.isdead or false
end
---This will get the thirst of a player
---@param src any