mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 22:02:27 +00:00
Fix drunk status detection
This commit is contained in:
+2
-2
@@ -154,10 +154,10 @@ ESX.RegisterServerCallback('esx_policejob:getOtherPlayerData', function(source,
|
||||
height = height
|
||||
}
|
||||
|
||||
TriggerEvent('esx_status:getStatus', _source, 'drunk', function(status)
|
||||
TriggerEvent('esx_status:getStatus', source, 'drunk', function(status)
|
||||
|
||||
if status ~= nil then
|
||||
data.drunk = status.getPercent()
|
||||
data.drunk = math.floor(status.percent)
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user