EngineSetModelTXDID

From Multi Theft Auto: Wiki
Revision as of 15:57, 11 July 2025 by Blow1d (talk | contribs) (Addition of an example, indicating where the function has been used with the use of other functions so that this can work)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22190:
This function changes the TXD ID of the given model ID.


Syntax

bool engineSetModelTXDID( int modelID, int txdID )

OOP Syntax Help! I don't understand this!

Method: Engine.setModelTXDID(...)


Required Arguments

  • modelID: The ID of the model to update TXD ID.
  • txdID: The ID of target TXD. Use engineRequestTXD to get a new TXD ID.

Returns

Returns true if this function succeeds, throw a error if it fails for some reason.

Example

See an example in the engineRequestTXD function, which uses engineSetModelTXDID

See Also