EngineStreamingRestoreBufferSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Add a line break)
mNo edit summary
Line 2: Line 2:
{{Client function}}
{{Client function}}


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


==Syntax==  
==Syntax==  
Line 12: Line 10:


===Returns===
===Returns===
Returns ''true'' if the event occurred, otherwise it throws an error message.
Returns ''true'' if the event occurred, otherwise it throws an error message and returns ''false''.


==Requirements==
==Requirements==

Revision as of 09:36, 30 June 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