EngineSetModelTXDID: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|22190|This function changes the TXD ID of the given model ID.}} ==Syntax== <syntaxhighlight lang="lua"> bool engineSetModelTXDID( int modelID, int txdID ) </syntaxhighlight> {{OOP||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 fu...")
 
m (Addition of an example, indicating where the function has been used with the use of other functions so that this can work)
 
Line 16: Line 16:
Returns ''true'' if this function succeeds, throw a error if it fails for some reason.
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==
==See Also==
{{Engine_functions}}
{{Engine_functions}}

Latest revision as of 15:57, 11 July 2025

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