From 9c99e71e2fe42a3e66b15aa8dcf834f00d5e0752 Mon Sep 17 00:00:00 2001 From: SyncEye <50116007+DamjanPetrovicki@users.noreply.github.com> Date: Mon, 5 Oct 2020 01:12:12 +0200 Subject: [PATCH] Update main.lua (#494) --- server/main.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/server/main.lua b/server/main.lua index 56d569e9..7d2bb3ba 100644 --- a/server/main.lua +++ b/server/main.lua @@ -175,16 +175,16 @@ ESX.RegisterServerCallback('esx_policejob:getOtherPlayerData', function(source, if status then data.drunk = ESX.Math.Round(status.percent) end - - if Config.EnableLicenses then - TriggerEvent('esx_license:getLicenses', target, function(licenses) - data.licenses = licenses - cb(data) - end) - else - cb(data) - end end) + + if Config.EnableLicenses then + TriggerEvent('esx_license:getLicenses', target, function(licenses) + data.licenses = licenses + cb(data) + end) + else + cb(data) + end end end)