engineRequestTXD | Multi Theft Auto: Wiki Skip to content

engineRequestTXD

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 is used to register the next available TXD ID.

Syntax

engineRequestTXD ( )

Code Examples

client

This example replaces textures for some Grove Street buildings.

-- Load IMG archive
local img = engineLoadIMG('worldmod.img')
-- Enable streaming from this IMG
engineAddImage(img)
-- Allocate a new TXD
local newTxdId = engineRequestTXD("WESTERNHOUSES01")
-- Link IMG files to TXD
engineImageLinkTXD(img, "western.txd", newTxdId)
-- Assign TXD to game models
engineSetModelTXDID(17697, newTxdId)
engineSetModelTXDID(17925, newTxdId)
engineSetModelTXDID(3646, newTxdId)

See Also

Engine Functions
Engine Elements