btw what the flags=1 means?
I have the same problem, the startSound() script loads the audio file and plays it just for a millisecond or so.
Was anyone able to find a solution?
local SoundID = getSoundId("vispath:podklady/Hudba/hotel/party.ogg")
setSoundProperty(SoundID, {flags=1, volume = 40, loop = true, offset = math.random(76000) })