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

View file

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