Skip to content

Commit

Permalink
fix: restore loadout esx event removed
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabirobby authored Nov 10, 2022
1 parent 7e0a09b commit 072731f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions client/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ openShop = function(store, price)
})
TriggerServerEvent('fivem-appearance:save', appearance)
InMenu = false
TriggerEvent('esx:restoreLoadout')
ESX.SetPlayerData('ped', PlayerPedId())
else
lib.notify({
Expand All @@ -123,17 +122,14 @@ openShop = function(store, price)
exports['fivem-appearance']:setPlayerAppearance(currentAppearance)
InMenu = false
TriggerServerEvent('fivem-appearance:save',currentAppearance)
TriggerEvent('esx:restoreLoadout')
ESX.SetPlayerData('ped', PlayerPedId())
end
else
TriggerServerEvent('fivem-appearance:save', appearance)
InMenu = false
TriggerEvent('esx:restoreLoadout')
ESX.SetPlayerData('ped', PlayerPedId())
end
else
TriggerEvent('esx:restoreLoadout')
ESX.SetPlayerData('ped', PlayerPedId())
inMenu = false
end
Expand Down

0 comments on commit 072731f

Please sign in to comment.