EngineStreamingGetUsedMemory

From Multi Theft Auto: Wiki
Revision as of 17:29, 7 November 2024 by Fernando187 (talk | contribs) (Remove obsolete Requirements section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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