EngineRestream

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.7.0 r25613:
This function re-streams a specific group of models in the GTA world.

Syntax

bool engineRestream ( [ string restreamOption = "world" ] )

Optional Arguments

  • restreamOption: The specific group of models you want to re-stream. It can be: "world", "vehicles", "peds", "objects"

Returns

Returns true if the re-stream was successful, false otherwise.

Example

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

addEventHandler ("onClientResourceStart", resourceRoot, function ()
    engineRestream ("vehicles")
end)

See Also