EngineRestreamWorld: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (add link to PR#1735)
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
{{Added feature/item|1.5.9|1.5.8|20704|This function re-streams everything in the GTA world.}}
{{Added feature/item|1.5.9|1.5.8|20704|This function re-streams everything in the GTA world. Read [https://github.com/multitheftauto/mtasa-blue/pull/1735 this pull request] to understand what it is for.}}


==Syntax==
==Syntax==

Revision as of 12:20, 8 July 2024

This function re-streams everything in the GTA world. Read this pull request to understand what it is for.

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

This template will be deleted.

Changelog

Version Description
1.6.0-9.21712 Added includeLODs argument

See Also