MTA:Eir/functions/engineIsInfiniteStreamingEnabled

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function returns whether infinite streaming node allocation is enabled. With it being enabled, the only limitation to world entity streaming is the clientside hardware.

By default, infinite streaming is disabled.

Syntax

bool engineIsInfiniteStreamingEnabled ()

Returns

Returns true if infinite streaming is enabled, false otherwise.

Example

Click to collapse [-]
Client

This snippet prints out to the user whether infinite streaming is enabled.

addCommandHandler( "inf_stream",
    function()
        local isEnabled = engineIsInfiniteStreamingEnabled();

        outputChatBox( "Infinite Streaming Node Allocation is " .. ( isEnabled and "" or "not " ) .. "enabled." );
    end
);