From 286dbb2e781f900e06d5ac10faf7e88b272f34eb Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Wed, 9 Jun 2021 13:06:31 +1000 Subject: [PATCH] refactor(server/common): Start paycheck and sync after ESX.Jobs has been defined --- server/common.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/common.lua b/server/common.lua index 95a2ff6a..1eb6aa62 100644 --- a/server/common.lua +++ b/server/common.lua @@ -53,12 +53,11 @@ MySQL.ready(function() end end ESX.Jobs = Jobs + print('[^2INFO^7] ESX ^5Legacy^0 initialized') + ESX.StartDBSync() + ESX.StartPayCheck() end) end) - - print('[^2INFO^7] ESX ^5Legacy^0 initialized') - ESX.StartDBSync() - ESX.StartPayCheck() end) RegisterServerEvent('esx:clientLog')