If the SimpleHiddenSelection does not exist, and this function is called, it can immediately crash, or sometimes freeze (brick the server to 0 fps). This is a known issue amongst some mod developers, and a plethora of mods use this function, some of which are very popular. I have never personally reproduced this issue, however I can say for certain from experience and past mistakes, that it 100% happens.
Incase any modders are reading this I highly recommend using SetObjectTexture() instead as it basically accomplishes the same thing.