Can't modify hud device in <suspends> function?

Hello! I’m trying to modify the hud_message_device by using the .SetText() function after certain intervals. I’m doing this using the Sleep() function, which calls the SetText method after, say, Sleep(5.0)

The problem is, the actual message in game doesn’t change after the 5 seconds.
The way I have it setup is that the hud device shows to all players when a timer kicks in, so for example

ChangeHUDAfterTime()<suspends> : void =
    Sleep(5.0)
    HudDevice.SetText(Message)

HandleTimerSuccess ( Agent : ?agent ) : void =
    HudDevice.SetText(Message) # This works

    spawn:
        ChangeHUDAfterTime()     # This doesn't work ??????
    HudDevice.SetText(Message) # This works

Solved it!
In case anyone has a similar issue, I had to manually call the hide() function, then update the text with SetText(), then call the Show() Function again to update the text. Must’ve missed this lol

You can skip the Hide() and just do SetText() then Show()