EngineStreamingRestoreBufferSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Filling in page data & structure)
 
m (Add a line break)
 
Line 3: Line 3:


==Description==
==Description==
This function resets the streaming buffer.
This function resets the streaming buffer.<br>
The value is automatically reset when disconnected.
The value is automatically reset when disconnected.



Latest revision as of 01:14, 8 June 2024

Description

This function resets the streaming buffer.
The value is automatically reset when disconnected.

Syntax

bool engineStreamingRestoreBufferSize()

Returns

Returns true if the event occurred, otherwise it throws an error message.

Requirements

Minimum server version n/a
Minimum client version 1.6.0-9.22195

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.6.0-9.22195" />

Example

Click to collapse [-]
Client

This example restores streaming buffer size.

addEventHandler("onClientResourceStart", resourceRoot,
    function()
        engineStreamingRestoreBufferSize()
    end
)

See Also