diff --git a/client/main.lua b/client/main.lua index 261702cb..22292f4e 100644 --- a/client/main.lua +++ b/client/main.lua @@ -449,7 +449,6 @@ Citizen.CreateThread(function() if loadoutChanged and isLoadoutLoaded then ESX.PlayerData.loadout = loadout - TriggerServerEvent('esx:updateLoadout', loadout) end end end) diff --git a/server/main.lua b/server/main.lua index f849c758..b6e1806d 100644 --- a/server/main.lua +++ b/server/main.lua @@ -245,11 +245,7 @@ AddEventHandler('playerDropped', function(reason) end end) -RegisterServerEvent('esx:updateLoadout') -AddEventHandler('esx:updateLoadout', function(loadout) local xPlayer = ESX.GetPlayerFromId(source) - xPlayer.loadout = loadout -end) RegisterServerEvent('esx:updateLastPosition') AddEventHandler('esx:updateLastPosition', function(position)