EngineRestreamWorld: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
This function can be used after a model (or more) is loaded with [[engineLoadDFF]]:
This function can be used after a model (or more) is loaded with [[engineLoadDFF]]:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
addEventHandler("onClientResourceStart", resourceRoot, function()
addEventHandler ("onClientResourceStart", resourceRoot, function ()
engineRestreamWorld()
    engineRestreamWorld ()
end)
end)
</syntaxhighlight>
</syntaxhighlight>

Revision as of 20:31, 23 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

This template will be deleted.

See Also