Config = {} -- Grill-Props (Standard-GTA-Props) Config.GrillProps = { "prop_bbq_1", "prop_bbq_2", "prop_bbq_3", "prop_bbq_4", "prop_bbq_5", "smallbbqtrailer", "bigbbqtrailer" } -- Zeit zum Grillen (in ms) Config.GrillTime = 5000 -- Grill-Rezepte Config.GrillRecipes = { { label = "Steak", description = "Ein perfekt gegrilltes Steak", item = "cooked_bbq_ribeye", icon = "fas fa-drumstick-bite", requires = { {item = "rawmeat", amount = 1} } }, { label = "Fisch", description = "Ein perfekt gegrilltes Fischfilet", item = "grilled_fish", icon = "fas fa-drumstick-bite", requires = { {item = "fish_fillet", amount = 1} } } -- Hier kannst du weitere Rezepte hinzufügen } -- Überprüfe, ob alle Items existieren CreateThread(function() Wait(5000) -- Warte auf vollständige Initialisierung local QBCore = exports['qb-core']:GetCoreObject() if not QBCore or not QBCore.Shared or not QBCore.Shared.Items then print("^1FEHLER: QBCore.Shared.Items nicht verfügbar^7") return end local missingItems = {} -- Überprüfe Rezept-Items for _, recipe in pairs(Config.GrillRecipes) do if not QBCore.Shared.Items[recipe.item] then table.insert(missingItems, recipe.item) end -- Überprüfe Zutaten for _, req in pairs(recipe.requires) do if not QBCore.Shared.Items[req.item] then table.insert(missingItems, req.item) end end end if #missingItems > 0 then print("^1WARNUNG: Folgende Items fehlen in QBCore.Shared.Items:^7") for _, item in ipairs(missingItems) do print("^1- " .. item .. "^7") end else print("^2Alle Grill-Items existieren in QBCore.Shared.Items^7") end end)