EngineRestreamWorld

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function re-streams everything in the GTA world.

Syntax

bool engineRestreamWorld ( [bool includeLODs] )

Returns

Returns true if the world was restreamed successfully, false otherwise.

Optional Arguments

  • includeLODs: If is set to true this function will re-stream LOD models too.

Example

This function can be used after a model (or more) is loaded with engineLoadDFF:

addEventHandler ("onClientResourceStart", resourceRoot, function ()
    engineRestreamWorld ()
end)

Requirements

Minimum server version n/a
Minimum client version 1.5.8-9.20704

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20704" />

Changelog

Version Description
1.6.0-9.21712 Added includeLODs argument

See Also