housing und dj
This commit is contained in:
parent
112c7b1761
commit
10a5d168d4
731 changed files with 506993 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
if Config.Wardrobe ~= 'ak47_clothing' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
exports['ak47_clothing']:openOutfit() -- if it doesn't work with this export use other event
|
||||
-- TriggerEvent('ak47_clothing:openOutfitMenu') -- Use this only if the first export doesn't work, depend of you'r version
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'codem-appearance' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
TriggerEvent('codem-apperance:OpenWardrobe')
|
||||
end
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
if Config.Wardrobe ~= 'default' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
if Config.Framework == 'qb' then
|
||||
return TriggerEvent('qb-clothing:client:openOutfitMenu')
|
||||
end
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'room', {
|
||||
title = Lang('HOUSING_MENU_WARDROBE_DEFAULT_TITLE'),
|
||||
align = 'right',
|
||||
elements = {
|
||||
{ label = Lang('HOUSING_MENU_CLOTHES_MENU'), value = 'player_dressing' },
|
||||
{ label = Lang('HOUSING_MENU_DELETE_CLOTHES'), value = 'remove_cloth' }
|
||||
}
|
||||
}, function(data, menu)
|
||||
if data.current.value == 'player_dressing' then
|
||||
menu.close()
|
||||
TriggerServerCallback('qb-houses:server:getPlayerDressing', function(dressing)
|
||||
elements = {}
|
||||
|
||||
for i = 1, #dressing, 1 do
|
||||
table.insert(elements, {
|
||||
label = dressing[i],
|
||||
value = i
|
||||
})
|
||||
end
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'player_dressing',
|
||||
{
|
||||
title = Lang('HOUSING_MENU_WARDROBE_DEFAULT_TITLE'),
|
||||
align = 'right',
|
||||
elements = elements
|
||||
}, function(data2, menu2)
|
||||
TriggerEvent('skinchanger:getSkin', function(skin)
|
||||
TriggerServerCallback('qb-houses:server:getPlayerOutfit', function(clothes)
|
||||
TriggerEvent('skinchanger:loadClothes', skin, clothes)
|
||||
TriggerEvent('esx_skin:setLastSkin', skin)
|
||||
|
||||
TriggerEvent('skinchanger:getSkin', function(skin)
|
||||
TriggerServerEvent('esx_skin:save', skin)
|
||||
end)
|
||||
end, data2.current.value)
|
||||
end)
|
||||
end, function(data2, menu2)
|
||||
menu2.close()
|
||||
end)
|
||||
end)
|
||||
elseif data.current.value == 'remove_cloth' then
|
||||
menu.close()
|
||||
TriggerServerCallback('qb-houses:server:getPlayerDressing', function(dressing)
|
||||
elements = {}
|
||||
|
||||
for i = 1, #dressing, 1 do
|
||||
table.insert(elements, {
|
||||
label = dressing[i],
|
||||
value = i
|
||||
})
|
||||
end
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'remove_cloth', {
|
||||
title = Lang('HOUSING_MENU_DELETE_CLOTHES'),
|
||||
align = 'right',
|
||||
elements = elements
|
||||
}, function(data2, menu2)
|
||||
menu2.close()
|
||||
TriggerServerEvent('qb-houses:server:removeOutfit', data2.current.value)
|
||||
Notification(Lang('HOUSING_NOTIFICATION_OUTFIT_DELETE'), 'inform')
|
||||
end, function(data2, menu2)
|
||||
menu2.close()
|
||||
end)
|
||||
end)
|
||||
end
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
end)
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'fivem-appearance' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
exports['fivem-appearance']:openWardrobe()
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'illenium-appearance' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
TriggerEvent('illenium-appearance:client:openOutfitMenu')
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'mAppearance' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
TriggerEvent('codem-appearance:OpenWardrobe')
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'qb-clothing' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
TriggerEvent('qb-clothing:client:openOutfitMenu')
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'qs-appearance' then
|
||||
return
|
||||
end
|
||||
|
||||
function OpenClotheMenu()
|
||||
TriggerEvent('clothing:openOutfitMenu')
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'raid_clothes' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
TriggerEvent('raid_clothes:openmenu')
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'rcore_clothes' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
TriggerEvent('rcore_clothes:openOutfits')
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'rcore_clothing' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
TriggerEvent('rcore_clothing:openChangingRoom')
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'sleek-clothestore' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
exports['sleek-clothestore']:OpenWardrobe()
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if Config.Wardrobe ~= 'tgiann-clothing' then
|
||||
return
|
||||
end
|
||||
|
||||
function openWardrobe()
|
||||
TriggerEvent('tgiann-clothing:openOutfitMenu')
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue