#if not DialogManager then return end if not ingredient then local ingredient_dialog = {} ingredient_dialog["pln_rt1_20"] = "Muriatic Acid" ingredient_dialog["pln_rt1_22"] = "Caustic Soda" ingredient_dialog["pln_rt1_24"] = "Hydrogenchlorid" ingredient_dialog["pln_rat_stage1_20"] = "Muriatic Acid" ingredient_dialog["pln_rat_stage1_22"] = "Caustic Soda" ingredient_dialog["pln_rat_stage1_24"] = "Hydrogenchlorid" ingredient_dialog["pln_rat_stage1_28"] = "Bag done" ingredient_dialog["Play_loc_mex_cook_03"] = "Muriatic Acid" ingredient_dialog["Play_loc_mex_cook_04"] = "Caustic Soda" ingredient_dialog["Play_loc_mex_cook_05"] = "Hydrogenchlorid" ingredient_dialog["Play_loc_mex_cook_17"] = "Bag done" local _queue_dialog_orig = DialogManager.queue_dialog function DialogManager:queue_dialog(id, ...) if ingredient_dialog[id] then if not ingredient_online_toggle then managers.chat:feed_system_message(ChatManager.GAME, "Add: " .. ingredient_dialog[id]) else managers.chat:send_message(ChatManager.GAME, managers.network.account:username() or "Offline", "Add: " .. ingredient_dialog[id]) end end return _queue_dialog_orig(self, id, ...) end ingredient = true managers.hud:show_hint( { text = "ingredient teller loaded" } ) else if not ingredient_online_toggle then managers.hud:show_hint( { text = "ingredient teller public" } ) ingredient_online_toggle = true else managers.hud:show_hint( { text = "ingredient teller local" } ) ingredient_online_toggle = false end end