engineAddImage | Multi Theft Auto: Wiki Skip to content

engineAddImage

Client-side
Server-side
Shared

Pair: engineRemoveImage

Updated in 1.6.0 r21892 | Added in 1.6.0 r21695

This function adds an IMG file container to GTA streamer. After this GTA will asynchronously load models from IMG.

OOP Syntax Help! I don't understand this!

  • Method:img:add(...)

Syntax

bool engineAddImage ( ​img imgArchive )
Required Arguments
  • imgArchive: The IMG file you want to add to GTA world.

Returns

  • bool: result

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

Code Examples

Script Example Missing

Function engineAddImage needs a script example. Help out by writing one.

Contribution guidelines

Changelog

  • 1.6.0 r21892

    The maximum number of archives that can be enabled once has been increased to 255; previously, it was limited to just 2 archives enabled once.

  • See Also

    Engine Functions