EngineRemoveImage: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|4|1.6.0|21708|This function removes an IMG container from GTA.}} {{Note|This article is incomplete and may contain errors}} ==Syntax== <syntaxhighlight lang="lua"> img engineRemoveImage ( img img_file ) </syntaxhighlight> {{OOP||EngineIMG}} ===Required Arguments=== * '''img_file''': The IMG file you want to remove. ===Returns=== Returns ''true'' if IMG file was successfully removed, ''false'' otherwise....") |
m (→Examples: Fix) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{{Client function}} | {{Client function}} | ||
{{New feature/item|4|1.6.0|21708|This function | {{New feature/item|4|1.6.0|21708|This function disables streaming from an IMG container.}} | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
boolean engineRemoveImage ( img img_file ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[ | {{OOP||[[img]]:remove}} | ||
===Required Arguments=== | ===Required Arguments=== | ||
* '''img_file''': The [[IMG]] file you want to remove. | * '''img_file''': The [[IMG]] file you want to remove. | ||
===Returns=== | ===Returns=== | ||
Returns ''true'' if [[IMG]] file was successfully | Returns ''true'' if stremaing from [[IMG]] file was successfully disabled, ''false'' otherwise. | ||
==Examples== | ==Examples== | ||
This example loads IMG file, adds it to GTA and after 10 seconds removes it. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
local img = engineLoadIMG('file.img') -- load IMG file to mta | |||
engineAddImage(img) -- add it to GTA world | |||
setTimer(engineRemoveImage, 600*1000, 1, img) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Engine_functions}} | {{Engine_functions}} |
Latest revision as of 21:59, 30 May 2023
Syntax
boolean engineRemoveImage ( img img_file )
OOP Syntax Help! I don't understand this!
- Method: img:remove(...)
Required Arguments
- img_file: The IMG file you want to remove.
Returns
Returns true if stremaing from IMG file was successfully disabled, false otherwise.
Examples
This example loads IMG file, adds it to GTA and after 10 seconds removes it.
local img = engineLoadIMG('file.img') -- load IMG file to mta engineAddImage(img) -- add it to GTA world setTimer(engineRemoveImage, 600*1000, 1, img)
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