Added some modules + Experimental SQL auto-migration stuff

This commit is contained in:
Jérémie N'gadi
2020-05-11 14:05:00 +02:00
parent 390cce6195
commit 29d2a48a12
10 changed files with 158 additions and 52 deletions
+14
View File
@@ -1,3 +1,17 @@
MySQL.ready(function()
print('[esx] ensuring migrations')
TriggerEvent('esx:migrations:ensure', function(module)
ESX.EnsureMigrations(module)
end)
end)
AddEventHandler('esx:migrations:ensure', function(register)
register('base')
end)
RegisterNetEvent('esx:onPlayerJoined')
AddEventHandler('esx:onPlayerJoined', function()
if not ESX.Players[source] then