EngineLoadTXD: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 6: Line 6:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool engineLoadTXD ( string txd_file )  
txd engineLoadTXD ( string txd_file )  
</syntaxhighlight>  
</syntaxhighlight>  


Line 13: Line 13:


===Returns===
===Returns===
Returns ''true'' if the function executed succesfully, ''false'' otherwise.
Returns a ''txd'' object if the file was loaded, ''false'' otherwise.


==Example==  
==Example==  
<syntaxhighlight lang="lua">
* See [[engineReplaceVehicleModel]] for a vehicle replacement example
-- example pending, please see models/carrier/bastage_hq resources
* See [[engineReplaceObjectModel]] for an object replacement example
</syntaxhighlight>


==See Also==
==See Also==
{{Engine_functions}}
{{Engine_functions}}

Revision as of 22:03, 9 June 2007

This function loads a RenderWare Texture Dictionary (TXD) file into GTA. The texture dictionary can then be used to provide textures.

This is a client-side function. Be sure to transfer your TXD file by including it in the meta file.

Syntax

txd engineLoadTXD ( string txd_file ) 

Required Arguments

  • txd_file: The relative path to the txd file you want to load

Returns

Returns a txd object if the file was loaded, false otherwise.

Example

See Also