EngineStreamingGetUsedMemory

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function gets the amount of memory (in bytes) used by the GTA streamer.

Syntax

int engineStreamingGetUsedMemory ( )

Returns

  • Returns a int containing the amount of memory in bytes.

Example

This example gets the amount of memory used by the streamer when the resource starts:

addEventHandler ("onClientResourceStart", resourceRoot,
    function ()
        outputChatBox ("Used memory by the GTA streamer: "..engineStreamingGetUsedMemory ()..".")
    end
)

See Also