EngineRestreamWorld: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
{{New feature/item|3.0161|1.6.0|22195| | {{New feature/item|3.0161|1.6.0|22195| | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool engineRestreamWorld() | bool engineRestreamWorld () | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Line 13: | Line 13: | ||
{{Deprecated items|3.0161|1.6.0| | {{Deprecated items|3.0161|1.6.0| | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool engineRestreamWorld( [ bool includeLODs = false ] ) | bool engineRestreamWorld ( [ bool includeLODs = false ] ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 20:52, 15 August 2024
This function re-streams everything in the GTA world. Read this pull request to understand what it is for.
Syntax
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
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" />
Changelog
Version | Description |
---|
1.6.0-9.21712 | Added includeLODs argument |
1.6.0-9.22663 | Removed includeLODs argument |
See Also
- engineAddImage
- engineApplyShaderToWorldTexture
- engineFreeModel
- engineGetModelFlags
- engineGetModelIDFromName
- engineGetModelLODDistance
- engineGetModelNameFromID
- engineGetModelPhysicalPropertiesGroup
- engineGetModelTextureNames
- engineGetModelTextures
- engineGetModelTXDID
- engineGetModelVisibleTime
- engineGetObjectGroupPhysicalProperty
- engineGetSurfaceProperties
- engineGetVisibleTextureNames
- engineImageGetFilesCount
- engineImageGetFiles
- engineImageGetFile
- engineImageLinkDFF
- engineImageLinkTXD
- engineImportTXD
- engineLoadCOL
- engineLoadDFF
- engineLoadIMG
- engineLoadIFP
- engineLoadTXD
- engineRemoveImage
- engineRemoveShaderFromWorldTexture
- engineReplaceAnimation
- engineReplaceCOL
- engineReplaceModel
- engineRequestModel
- engineResetModelFlags
- engineResetModelLODDistance
- engineResetSurfaceProperties
- engineRestoreAnimation
- engineRestoreCOL
- engineRestoreDFFImage
- engineRestoreModel
- engineRestoreModelPhysicalPropertiesGroup
- engineRestoreObjectGroupPhysicalProperties
- engineRestoreTXDImage
- engineRestreamWorld
- engineSetAsynchronousLoading
- engineSetModelFlag
- engineSetModelFlags
- engineSetModelLODDistance
- engineSetModelPhysicalPropertiesGroup
- engineSetModelVisibleTime
- engineSetObjectGroupPhysicalProperty
- engineSetSurfaceProperties
- engineStreamingFreeUpMemory
- engineStreamingGetUsedMemory