engineStreamingRestoreBufferSize | Multi Theft Auto: Wiki Skip to content

engineStreamingRestoreBufferSize

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


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

Syntax

bool engineStreamingRestoreBufferSize ( )

Returns

  • bool: value

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

Code Examples

shared

This example restores streaming buffer size.

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

See Also

Engine Functions
Engine Elements