MTA:Eir/functions/engineIsInfiniteStreamingEnabled

From Multi Theft Auto: Wiki
Revision as of 19:03, 10 December 2013 by The GTA (talk | contribs) (Created page with "__NOTOC__ This function returns whether infinite streaming node allocation is enabled. With it being enabled, the only limitation to world entity streaming is the clientside har...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
);