EngineRestreamWorld: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
This function re-streams everything in the GTA world.
{{New feature/item|3.0159|1.5.8|20704|This function re-streams everything in the GTA world.}}


==Syntax==
==Syntax==

Revision as of 08:48, 20 September 2021

This function re-streams everything in the GTA world.

Syntax

bool engineRestreamWorld ( )

Returns

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

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" />

See Also