Requesting a script that unables item usage

Hello there, i looked a bit inside the forums and i couldn't find another request like mine if not for MV, so i'm gonna request a script for VX Ace if anyone has it, what i need is a script that makes the player, when affected by a specific status, be unable to use items, every help is appreciated!
Code:
module Config
 StAry = [1,2,3,4,5]
end

class Window_ItemList < Window_Selectable
  alias orig_enable enable?
  def enable?(item)
    return false if StAry.includes?(item.id)
    return orig_enable(item)
  end
end

maybe?

Original thread: https://forums.rpgmakerweb.com/threads/requesting-a-script-that-unables-item-usage.133848/