EngineStreamingGetUsedMemory: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{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.}}
{{Added feature/item|3.0160|1.5.9|1.5.8|20901|This function gets the amount of memory (in bytes) used by the GTA streamer.}}


==Syntax==  
==Syntax==  

Revision as of 12:43, 23 September 2021

20901

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

This template will be deleted.

See Also