ensure migration order

This commit is contained in:
Jérémie N'gadi
2020-05-11 22:41:56 +02:00
parent 1d9f33c70a
commit 3ef71f7d35
7 changed files with 19 additions and 28 deletions
-4
View File
@@ -1,9 +1,5 @@
local self = ESX.Modules['addonaccount']
AddEventHandler('esx:migrations:ensure', function(register)
register('addonaccount')
end)
AddEventHandler('esx_addonaccount:getAccount', function(name, owner, cb)
Citizen.CreateThread(function()
-4
View File
@@ -1,9 +1,5 @@
local self = ESX.Modules['addoninventory']
AddEventHandler('esx:migrations:ensure', function(register)
register('addoninventory')
end)
AddEventHandler('esx_addoninventory:getInventory', function(name, owner, cb)
Citizen.CreateThread(function()
-4
View File
@@ -1,9 +1,5 @@
local self = ESX.Modules['datastore']
AddEventHandler('esx:migrations:ensure', function(register)
register('datastore')
end)
AddEventHandler('esx_datastore:getDataStore', function(name, owner, cb)
Citizen.CreateThread(function()
-4
View File
@@ -1,9 +1,5 @@
local self = ESX.Modules['job_police']
AddEventHandler('esx:migrations:ensure', function(register)
register('job_police')
end)
RegisterNetEvent('esx_policejob:confiscatePlayerItem')
AddEventHandler('esx_policejob:confiscatePlayerItem', function(target, itemType, itemName, amount)
local _source = source
-4
View File
@@ -1,9 +1,5 @@
local self = ESX.Modules['society']
AddEventHandler('esx:migrations:ensure', function(register)
register('society')
end)
RegisterNetEvent('esx_addonaccount:setMoney')
AddEventHandler('esx_addonaccount:setMoney', function(society, money)
if ESX.PlayerData.job and ESX.PlayerData.job.grade_name == 'boss' and 'society_' .. ESX.PlayerData.job.name == society then