EngineStreamingRestoreBufferSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(Remove obsolete Requirements section)
 
(2 intermediate revisions by one other user not shown)
Line 11: Line 11:
===Returns===
===Returns===
Returns ''true'' if the event occurred, otherwise it throws an error message and returns ''false''.
Returns ''true'' if the event occurred, otherwise it throws an error message and returns ''false''.
==Requirements==
{{Requirements|n/a|1.6.0-9.22195}}


==Example==  
==Example==  

Latest revision as of 17:34, 7 November 2024

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 and returns false.

Example

Click to collapse [-]
Client

This example restores streaming buffer size.

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

See Also