EngineStreamingRestoreBufferSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Add line break)
m (Undo revision 79848 by Nico834 (talk))
Tag: Undo
Line 2: Line 2:
{{Client function}}
{{Client function}}


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


==Syntax==  
==Syntax==  

Revision as of 01:07, 13 July 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.

Requirements

This template will be deleted.

Example

Click to collapse [-]
Client

This example restores streaming buffer size.

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

See Also