EngineStreamingGetUsedMemory

From Multi Theft Auto: Wiki
Revision as of 10:58, 20 September 2021 by Lvrent (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Added feature/item|3.0159|1.5.9|1.5.8|20901|This function gets the amount of memory (in bytes) used by the GTA streamer.}} ==Syntax== <synta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

20901

Syntax

bool 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

This template will be deleted.

See Also