From 02a2614cff1291db9e23ce43bfce9a2dc9a5af71 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 16 May 2021 23:41:58 +1000 Subject: [PATCH] fix(legacy/client): Remove redundant callback and unused code This is already handled by esx_skin and results in sending two callbacks. --- client/main.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/client/main.lua b/client/main.lua index 768fdff6..c62cab8b 100644 --- a/client/main.lua +++ b/client/main.lua @@ -60,14 +60,6 @@ AddEventHandler('esx:playerLoaded', function(playerData, isNew) FreezeEntityPosition(ESX.PlayerData.ped, false) StartServerSyncLoops() end) - if isNew then - - else - ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin) - TriggerEvent('skinchanger:loadSkin', skin) - end) - end - TriggerEvent('esx:loadingScreenOff') -- compatibility with old scripts, will be removed soon. end)