F3x tool to gui help

f3x has two modes, plugin and tool, i was wondering if anyone knew a way to have f3x usable by players via a button and not a tool. I figured out through experimentation you can achieve this while having the tool in your backpack with some code changes, but i need a way to enable the f3x plugin mode manually