Edit:
Sorry, I overread the 3rd parameter "value" which I'm describing here (it's not setoption):
If the option is a checkbox e.g. the value will be "1" for true and "0" for false (be sure to use it as sa string with the "" surrounding it).
Other opions might have other values, you'd need to check fot the option's name and category and scan the source code for it at e.g.
https://github.com/esoui/esoui/tree/master/esoui in order to be sure which values need to be used.