Properly revert skin if player doesn't buy, closes #17

This commit is contained in:
ElPumpo
2018-11-10 23:49:14 +01:00
parent 0e2b6da19d
commit 1ce1645fc4
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -8,7 +8,6 @@ AddEventHandler('esx_clotheshop:saveOutfit', function(label, skin)
local xPlayer = ESX.GetPlayerFromId(_source)
TriggerEvent('esx_datastore:getDataStore', 'property', xPlayer.identifier, function(store)
local dressing = store.get('dressing')
if dressing == nil then
@@ -21,7 +20,6 @@ AddEventHandler('esx_clotheshop:saveOutfit', function(label, skin)
})
store.set('dressing', dressing)
end)
end)