Revert respect ESX config

This commit is contained in:
ElPumpo
2018-11-11 14:10:57 +01:00
parent 74653246b0
commit e56d700df4
2 changed files with 13 additions and 16 deletions
+2 -3
View File
@@ -46,10 +46,9 @@ end)
RegisterServerEvent('esx_status:update')
AddEventHandler('esx_status:update', function(status)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer ~= nil then
if xPlayer then
xPlayer.set('status', status)
end
end)