engineRestream | Multi Theft Auto: Wiki Skip to content

engineRestream

Client-side
Server-side
Shared

Added in 1.6.0 r25613

This function re-streams a specific group of models and can be used as a more stable alternative to engineRestreamWorld when you only need to re-stream a specific model group rather than the entire world.

Note

This function works only on elements created by MTA. For example, objects created with createObject. If you want to re-stream elements that are part of the GTA map, you still need to use engineRestreamWorld or pass world as restreamOption.

Tip

If you only want to re-stream a specific model, engineRestreamModel may be a better choice.

Syntax

nil engineRestream ( [ ​string restreamOption = "world" ] )
Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.

  • restreamOption (default: "world"): Which group of models should be re-streamed and can be one of the following: world, vehicles, peds, or objects.

Returns

  • nil: nothing

This function always returns nil.

Code Examples

Script Example Missing

Function engineRestream needs a script example. Help out by writing one.

Contribution guidelines

See Also

Engine Functions