engineImageLinkDFF | Multi Theft Auto: Wiki Skip to content

engineImageLinkDFF

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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


This function links DFF file with an IMG container. This function does not change a model immediately. You should use engineRestreamWorld to reload models.

Syntax

engineImageLinkDFF ( )

Code Examples

client

You could use the following code:

-- Load IMG
local img = engineLoadIMG( "file.img" )
-- Enable streaming from this IMG
engineAddImage( img )
-- Get model TXD id
local infernusModelID = 411
local infernusModelTxdID = engineGetModelTXDID( infernusModelID )
-- Link DFF and TXD to IMG files
engineImageLinkDFF( img, "infernus.dff", infernusModelID )
engineImageLinkTXD( img, "infernus.txd", infernusModelTxdID )
-- Reload game models
engineRestreamWorld()

See Also

Engine Functions
Engine Elements