Fix drunk status detection

This commit is contained in:
Jérémie N'gadi
2017-09-12 11:12:27 +02:00
parent dd4f9bf111
commit 83bd85c377
+2 -2
View File
@@ -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)