mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
ensure migration order
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user