engineStreamingRestoreMemorySize | Multi Theft Auto: Wiki Skip to content

engineStreamingRestoreMemorySize

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.


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

Tip

The function to manipulate the memory size is engineStreamingSetMemorySize

OOP Syntax Help! I don't understand this!

Syntax

nil engineStreamingRestoreMemorySize ( )

Returns

  • nil: value

Code Examples

shared

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
Engine Elements