EngineStreamingGetUsedMemory

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

* FEATURE ADDED IN 1.5.9 (REVISION: r20901)
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
)

Requirements

Minimum server version n/a
Minimum client version 1.5.8-9.20901

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20901" />

See Also

* FEATURE ADDED IN 1.5.9 (REVISION: r20704)
* FEATURE ADDED IN 1.5.9 (REVISION: r20704)
* FEATURE ADDED IN 1.5.9 (REVISION: r20704)
* FEATURE ADDED IN 1.5.9 (REVISION: r20901)