Fix source in playerDropped

This commit is contained in:
Jérémie N'gadi
2017-08-14 13:42:18 +02:00
committed by GitHub
parent 98ab0e461b
commit afe05509bc
+2 -2
View File
@@ -4,7 +4,7 @@ local Players = {}
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
AddEventHandler('esx:playerDropped', function(source)
AddEventHandler('esx:playerDropped', function()
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
local caution = xPlayer.get('caution')
@@ -125,4 +125,4 @@ AddEventHandler('esx_jobs:caution', function(cautionType, cautionAmount, spawnPo
xPlayer.set('caution', 0)
TriggerClientEvent('esx:showNotification', source, 'Une caution de ~g~'.. cautionAmount .. '$ ~s~vous a été rendue.')
end
end)
end)