engineStreamingGetUsedMemory | Multi Theft Auto: Wiki Skip to content

engineStreamingGetUsedMemory

Client-side
Server-side
Shared

This function gets the amount of memory (in bytes) used by the GTA streamer.

OOP Syntax Help! I don't understand this!

Syntax

int engineStreamingGetUsedMemory ( )

Returns

  • int: used memory

Returns a int containing the amount of memory in bytes.

Code Examples

client

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

Engine Functions