mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Fix status
This commit is contained in:
+5
-1
@@ -75,7 +75,11 @@ ESX.RegisterServerCallback('esx_policejob:getOtherPlayerData', function(source,
|
||||
}
|
||||
|
||||
TriggerEvent('esx_status:getStatus', _source, 'drunk', function(status)
|
||||
data.drunk = status:getPercent()
|
||||
|
||||
if status ~= nil then
|
||||
data.drunk = status.getPercent()
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
TriggerEvent('esx_license:getLicenses', _source, function(licenses)
|
||||
|
||||
Reference in New Issue
Block a user