How to Stop scripts local with scripts

i am a Developer for one Server we have a Problem with FFA and we need to Stop a Inventory only for the Players they are in FFA kann some one Help us Pleas

You could create a function that disables the button for the inventory while they are inside the FFA, therefore making them unable to use it

ich have the Problem the Inventory overwirt the weapons

then include a handler which handles the inventory when beeing in FFA.

e.g a export within the inventory used within FFA

i dont know how