EngineAddImage: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Changed to a valid revision)
No edit summary
Line 2: Line 2:
{{Client function}}
{{Client function}}


{{New feature/item|4|1.6.0|21695|This function adds an IMG file container from GTA.}}
{{New feature/item|4|1.6.0|21695|This function adds an IMG file container to GTA.}}
{{Warning|This article is incomplete and may contain errors}}
{{Warning|This article is incomplete and may contain errors}}


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
img engineAddImage( img img_file )
img engineAddImage ( img img_file )
</syntaxhighlight>
</syntaxhighlight>


{{OOP||[[DFF|EngineIMG]]}}
{{OOP||[[DFF|EngineIMG]]}}
===Required Arguments===
===Required Arguments===
* '''img_file''': The [[IMG]] file you want to add.
* '''img_file''': The [[IMG]] file you want to add to GTA world.


===Returns===
===Returns===
Returns an [[IMG]] element if the [[IMG]] file was successfully added, ''false'' otherwise.
Returns true if the [[IMG]] element was successfully added, ''false'' otherwise.


==See Also==
==See Also==
{{Engine_functions}}
{{Engine_functions}}

Revision as of 17:57, 10 April 2023

ADDED/UPDATED IN VERSION 1.6.0 r21695:
This function adds an IMG file container to GTA.
[[|link=|]] Warning: This article is incomplete and may contain errors

Syntax

img engineAddImage ( img img_file )


OOP Syntax Help! I don't understand this!

Method: EngineIMG(...)


Required Arguments

  • img_file: The IMG file you want to add to GTA world.

Returns

Returns true if the IMG element was successfully added, false otherwise.

See Also