This commit is contained in:
Nordi98 2025-06-15 04:34:41 +02:00
parent fcb0c6c5dd
commit 5677a43e74
2 changed files with 28 additions and 18 deletions

View file

@ -33,21 +33,21 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
lib.registerContext({ lib.registerContext({
id = 'warehouse_menu', id = 'warehouse_menu',
title = 'Warehouse Interaction', title = 'Lager Interaktion',
options = { options = {
{ {
icon = "check", icon = "check",
title = 'Manage Warehouse', title = 'Lager verwalten',
disabled = DisableOwnerMenu, disabled = DisableOwnerMenu,
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
lib.registerContext({ lib.registerContext({
id = 'warehouse_owner_menu', id = 'warehouse_owner_menu',
title = 'Warehouse Interaction', title = 'Lager Interaktion',
options = { options = {
{ {
icon = "hand", icon = "hand",
title = 'Open Warehouse Stash', title = 'Lager öffnen',
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:openwarehousestash", meow) TriggerEvent("moon-warehouse:client:openwarehousestash", meow)
@ -55,16 +55,16 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "arrows-up-to-line", icon = "arrows-up-to-line",
title = "Upgrade Warehouse", title = "Lager upgraden",
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
lib.registerContext({ lib.registerContext({
id = 'warehouse_upgrade_menu', id = 'warehouse_upgrade_menu',
title = 'Warehouse Upgradation', title = 'Lagermodernisierung',
options = { options = {
{ {
icon = "arrows-up-to-line", icon = "arrows-up-to-line",
title = 'Upgrade Warehouse Stash', title = 'Lager Plätze ausbauen',
arrow = false, arrow = false,
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:upgradewarehousesize", meow) TriggerEvent("moon-warehouse:client:upgradewarehousesize", meow)
@ -72,7 +72,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "arrows-up-to-line", icon = "arrows-up-to-line",
title = 'Upgrade Warehouse Slots', title = 'Lagerplätze erhöhen',
arrow = false, arrow = false,
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:upgradewarehouseslots", meow) TriggerEvent("moon-warehouse:client:upgradewarehouseslots", meow)
@ -80,7 +80,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "backward", icon = "backward",
title = "Go Back", title = "Zurück",
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:openmenu", meow) TriggerEvent("moon-warehouse:client:openmenu", meow)
@ -93,7 +93,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "arrows-up-to-line", icon = "arrows-up-to-line",
title = 'Reset Warehouse Password', title = 'Lagerpasswort zurücksetzen',
arrow = false, arrow = false,
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:resetpassword", meow) TriggerEvent("moon-warehouse:client:resetpassword", meow)
@ -101,7 +101,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "xmark", icon = "xmark",
title = "Sell Warehouse", title = "Lager verkaufen",
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:sellwarehouse", {location = meow}) TriggerEvent("moon-warehouse:client:sellwarehouse", {location = meow})
@ -109,7 +109,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "clock", icon = "clock",
title = 'Renew Warehouse', title = 'Lager erneuern',
arrow = false, arrow = false,
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:renewwarehouse", meow) TriggerEvent("moon-warehouse:client:renewwarehouse", meow)
@ -117,7 +117,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "clock", icon = "clock",
title = 'Check Warehouse Expiry Date', title = 'Lager Ablaufdatum prüfen',
arrow = false, arrow = false,
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:checkwarehouse", meow) TriggerEvent("moon-warehouse:client:checkwarehouse", meow)
@ -125,7 +125,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "backward", icon = "backward",
title = "Go Back", title = "zurück",
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:openmenu", meow) TriggerEvent("moon-warehouse:client:openmenu", meow)
@ -138,7 +138,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "dollar-sign", icon = "dollar-sign",
title = 'Purchase Warehouse', title = 'Lager kaufen',
disabled = DisablePurchase, disabled = DisablePurchase,
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
@ -147,7 +147,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "dollar-sign", icon = "dollar-sign",
title = 'Open Stash With Password', title = 'Lager mit Passwort öffnen',
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
TriggerEvent("moon-warehouse:client:openwithpassword", meow) TriggerEvent("moon-warehouse:client:openwithpassword", meow)
@ -155,7 +155,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "dollar-sign", icon = "dollar-sign",
title = 'Raid Warehouse', title = 'Lager durchsuchen',
disabled = DisablePoliceRaid, disabled = DisablePoliceRaid,
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
@ -174,7 +174,7 @@ RegisterNetEvent("moon-warehouse:client:openmenu", function(meow)
}, },
{ {
icon = "xmark", icon = "xmark",
title = "Close Menu", title = "Menü schließen",
arrow = false, -- puts arrow to the right arrow = false, -- puts arrow to the right
onSelect = function() onSelect = function()
lib.hideContext() lib.hideContext()

View file

@ -28,4 +28,14 @@ escrow_ignore {
'server/*.lua', 'server/*.lua',
} }
dependencies {
'qb-core',
'qb-target',
'oxmysql'
}
lua54 'yes' lua54 'yes'