Removed updating loadout from client - usally spawned weapons

This commit is contained in:
ElPumpo
2020-01-12 22:04:59 +01:00
parent ccdd4494c5
commit 5566abca4f
2 changed files with 0 additions and 5 deletions
-1
View File
@@ -449,7 +449,6 @@ Citizen.CreateThread(function()
if loadoutChanged and isLoadoutLoaded then
ESX.PlayerData.loadout = loadout
TriggerServerEvent('esx:updateLoadout', loadout)
end
end
end)
-4
View File
@@ -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)