EngineStreamingGetUsedMemory: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Remove obsolete Requirements section)
 
Line 18: Line 18:
)
)
</syntaxhighlight>
</syntaxhighlight>
==Requirements==
{{Requirements|n/a|1.5.8-9.20901|}}


==See Also==
==See Also==
{{Engine_functions}}
{{Engine_functions}}

Latest revision as of 17:29, 7 November 2024

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