mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
fix(legacy/client): Remove redundant callback and unused code
This is already handled by esx_skin and results in sending two callbacks.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user