EngineLoadIMG: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Fixed spacing)
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{New feature/item|3.0161|1.6.0|21708|This function loads an IMG container into GTA. '''Only 2 IMG archives can be loaded into GTA'''
{{New feature/item|3.0161|1.6.0|21708|This function loads an IMG container into GTA. '''Only 239 IMG archives can be loaded into GTA'''
}}
}}



Revision as of 15:55, 25 July 2023

ADDED/UPDATED IN VERSION 1.6.0 r21708:
This function loads an IMG container into GTA. Only 239 IMG archives can be loaded into GTA

Syntax

img engineLoadIMG ( string img_file )

OOP Syntax Help! I don't understand this!

Method: EngineIMG(...)


Required Arguments

  • img_file: The filepath to the IMG file you want to load.

Returns

Returns an IMG element if the IMG file loaded, false otherwise.

Examples

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