engineRemoveImage | Multi Theft Auto: Wiki Skip to content

engineRemoveImage

Client-side
Server-side
Shared

Manual Review Required

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


This function disables streaming from an IMG container.

OOP Syntax Help! I don't understand this!

  • Method: img:remove(...)

Syntax

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

Returns

  • boolean: value

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

Code Examples

shared

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
Engine Elements