engineLoadIMG | Multi Theft Auto: Wiki Skip to content

engineLoadIMG

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


If you're experiencing crashes/game hangs with default values, try to adjust memory/buffer/cache sizes with engineStreamingSetMemorySize, engineStreamingSetBufferSize and/or engineStreamingSetModelCacheLimits.

Note

If you're experiencing crashes/game hangs with default values, try to adjust memory/buffer/cache sizes with engineStreamingSetMemorySize , engineStreamingSetBufferSize and/or engineStreamingSetModelCacheLimits .

Syntax

engineLoadIMG ( )

Code Examples

client

This example loads IMG file from directory and then prints number of files in it

local img = engineLoadIMG('file.img')
iprint('Number of files: ',#engineImageGetFiles(img))

See Also

Engine Functions
Engine Elements