audio.createSoundFromURL

From GTA Connected
Revision as of 10:37, 28 August 2022 by Vortrex (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |type = function |name = audio.createSoundFromURL |usage = creates a sound object from an internet stream URL that optionally loops |parameters...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Client 1.0.0

Sound audio.createSoundFromURL(string url, bool loop)

The audio.createSoundFromURL function is used to creates a sound object from an internet stream URL that optionally loops.

Parameters

1) string url The stream URL.
2) bool loop Whether to play the sound repeatedly.

Return

Sound A sound object.

Notes

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.