engineStreamingRestoreMemorySize | Multi Theft Auto: Wiki Skip to content

engineStreamingRestoreMemorySize

Client-side
Server-side
Shared

Added in 1.6.0 r21874

Restores the maximum amount of RAM [in bytes] that can be used for streaming to the default value.

OOP Syntax Help! I don't understand this!

Syntax

nil engineStreamingRestoreMemorySize ( )

Returns

  • nil: nothing

This functions returns nothing.

Code Examples

client

This example adds a command that can be used to change the streaming memory size, and display the previous value.

addCommandHandler("rsms", function()
local prevMB = math.floor(engineGetStreamingMemorySize() / 1024 / 1024)
engineStreamingRestoreMemorySize()
outputChatBox("The maximum streaming memory available has been restored to the original value of " .. math.floor(engineGetStreamingMemorySize() / 1024 / 1024) .. " MB [Was " .. prevMB .. " MB]")
end, false, false)

See Also

Engine Functions