EngineRemoveImage

From Multi Theft Auto: Wiki
Revision as of 21:59, 30 May 2023 by FileEX (talk | contribs) (→‎Examples: Fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r21708:
This function disables streaming from an IMG container.

Syntax

boolean engineRemoveImage ( img img_file )


OOP Syntax Help! I don't understand this!

Method: img:remove(...)


Required Arguments

  • img_file: The IMG file you want to remove.

Returns

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

Examples

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