MTA:Eir/functions/engineGetActiveStreamingFreeSlotCount: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function returns how many streaming node are available to allocate inside of the streaming garbage collection system. When...")
 
(Renamed template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{MTA:Eir/Client_function}}
__NOTOC__  
__NOTOC__  
This function returns how many streaming node are available to allocate inside of the [[GTA:SA_Streaming_Garbage_Collection|streaming garbage collection system]]. When entities allocate RenderWare data, they want to have a streaming node too. Failure to allocate it results in deletion of its RenderWare data.
This function returns how many streaming node are available to allocate inside of the [[GTA:SA_Streaming_Garbage_Collection|streaming garbage collection system]]. When entities allocate RenderWare data, they want to have a streaming node too. Failure to allocate it results in deletion of its RenderWare data.

Latest revision as of 08:05, 28 September 2023

This function returns how many streaming node are available to allocate inside of the streaming garbage collection system. When entities allocate RenderWare data, they want to have a streaming node too. Failure to allocate it results in deletion of its RenderWare data.

Syntax

int engineGetActiveStreamingFreeSlotCount ()

Returns

Returns the amount of free nodes inside the streaming garbage collector.

Example

Click to collapse [-]
Client

This snippet draws the amount of free streaming node slots on the screen.

addEventHandler( "onClientRender", root,
    function()
        local count = engineGetActiveStreamingFreeSlotCount();

        dxDrawText( "#free-streaming-slots: " .. count, 100, 420 );
    end
);