Hey there guys, i would like to know if it is possible for a plugin to disable another plugins from a menu option ingame.
I know that you can't change them while running the game, but i would like to know if it is possible for a plugin just to change the state of the plugins.js file on certain plugins, then restart the game, and have the changes i made reflected in that instance.
I'm not sure if plugins are all compiled into a single game file or left as individual files when deploying. If they're left as individual files, it might be possible to have a plugin change the active state of other plugins. But the problem with that is it doesn't affect an individual game - if you started with the plugins enabled, then got to a point where you wanted them disabled, then at some time started a new game, that new game would have the plugins disabled as well.
changing the access to the plugin files is the same as working on your car engine: it can't be done while the car is running 40mph on the highway.
what can be done is changing functions of plugins that were intended to be changed, like if someone installed a switch to your driver cockpit to change something while driving.
but that requires specific installation of said switch, so if it does not yet exist it has to be done on a one-on-one case work on a specific plugin. it can't be done in general.
so you can ask this for a specific plugin, but you have to specify that or all other answers are useless to you.