API.setHudVisible() doesn't work

The function doesn't work properly, and it doesn't return any error messages either.

Reproduciability

Reproduciability
Yes
Steps (optionally)
Just use API.setHudVisible(bool visible) in any script, where visible is a boolean.

Message

The function doesn't work properly, and it doesn't return any error messages either.