Planned Specify Which Items Can Go in Fridge

I want to be able use the ordinary items in the category food.
But for some reason I want the players to store dung in the fridge (don't ask why :)) I also run the plugin Ganja and want the players to store the weed so maybe be able to specify shortname and/or skin id to allow items if possible?
 
Last edited:
I want to be able use the ordinary items in the category food.
But for some reason I want the players to store dung in the fridge (don't ask why :)) I also runt the plugin Ganja and want the players to store the weed so maybe be able to specify shortname and/or skin id to allow items if possible?
Yeah it'll be configurable, I was just curious if there’s a specific use case or something unique you're after

If I do implement it, I'd rather make it broader to cover all types of storage containers, not just the fridge, since it's essentially the same logic. I already have a similar plugin that does this https://game4freak.io/plugins/cupboard-accepts-anything.86
 
Back
Top
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin. Parameters in < > are required, while [ ] are optional.
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Make sure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart