Fix source

This commit is contained in:
Jérémie N'gadi
2017-08-13 22:39:05 +02:00
committed by GitHub
parent 53188ccb93
commit 5797ea37ce
+6 -4
View File
@@ -40,12 +40,14 @@ ESX.RegisterServerCallback('esx_service:enableService', function(source, cb, nam
end)
AddEventHandler('playerDropped', function(source)
AddEventHandler('playerDropped', function()
local _source = source
for k,v in pairs(InService) do
if v[source] == true then
v[source] = nil
if v[_source] == true then
v[_source] = nil
end
end
end)
end)