RegisterStreamingFileFromUrl
DocsRegisterStreamingFileFromUrl(registerAs, url)Description
Experimental: This native may be altered or removed in future versions of CitizenFX without warning.
Registers a file from an URL as a streaming asset in the GTA streaming subsystem. This will asynchronously register the asset, and caching is done based on the URL itself - cache headers are ignored.
Use IS_STREAMING_FILE_READY to check if the asset has been registered successfully.
Parameters
| Name | Type | Description |
|---|---|---|
registerAs | char* | The file name to register as, for example `asset.ydr`. |
url | char* | The URL to fetch the asset from. |
Returns
voidThis native does not return a value.