MTA:Eir/functions/engineIsStrictStreamingNodeDistributionEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function returns whether strict streaming node distribution is enabled. Strict streaming node distribution is meant to rationalize the streaming node allocation, ...")
 
(Renamed template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{MTA:Eir/Client_function}}
__NOTOC__  
__NOTOC__  
This function returns whether strict streaming node distribution is enabled. Strict streaming node distribution is meant to rationalize the streaming node allocation, so the number of total streaming nodes does not grow too high.
This function returns whether strict streaming node distribution is enabled. Strict streaming node distribution is meant to rationalize the streaming node allocation, so the number of total streaming nodes does not grow too high.

Latest revision as of 08:07, 28 September 2023

This function returns whether strict streaming node distribution is enabled. Strict streaming node distribution is meant to rationalize the streaming node allocation, so the number of total streaming nodes does not grow too high.

By default, strict node distribution is enabled.

Syntax

bool engineIsStrictStreamingNodeDistributionEnabled ()

Returns

Returns true is strict streaming node distribution is enabled, false otherwise.

Example

Click to collapse [-]
Client

This snippet prints out the current strict node distribution status to the user.

addCommandHandler( "node_alloc",
    function()
        local isEnabled = engineIsStrictStreamingNodeDistributionEnabled();

        outputChatBox( "Strict Streaming Node Distribution is " .. ( isEnabled and "" or "not " ) .. "enabled." );
    end
);