engineRemoveImage | Multi Theft Auto: Wiki Skip to content

engineRemoveImage

Client-side
Server-side
Shared

Pair: engineAddImage

Added in 1.6.0 r21695

This function disables streaming from an IMG container.

OOP Syntax Help! I don't understand this!

  • Method:img:remove(...)

Syntax

bool engineRemoveImage ( ​img img_file )
Required Arguments
  • img_file: The IMG file you want to remove.

Returns

  • bool: result

Returns true if stremaing from IMG file was successfully disabled, false otherwise.

Code Examples

client

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

Engine Functions