EngineFreeTXD: 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 is used to un-assign the specified TXD ID from the engineRequestTXD assignment.}} ==Syntax== <syntaxhighlight lang="lua"> bool engineFreeTXD ( int txdID ) </syntaxhighlight> ===Required Arguments=== *'''txdID''': the TXD ID you want to have un-assigned. ===Returns=== Returns ''true'' if the TXD was successfully freed, ''false'' otherwise. ==Example== <syntaxhighlight lang="lua"> -- T...")
 
(Remove obsolete Requirements section)
 
Line 22: Line 22:
engineFreeTXD(newTxdId)
engineFreeTXD(newTxdId)
</syntaxhighlight>
</syntaxhighlight>
==Requirements==
{{Requirements|n/a|1.6.0.22190|}}


==See Also==
==See Also==
{{Engine functions}}
{{Engine functions}}

Latest revision as of 17:34, 7 November 2024

ADDED/UPDATED IN VERSION 1.6.0 r22190:
This function is used to un-assign the specified TXD ID from the engineRequestTXD assignment.

Syntax

bool engineFreeTXD ( int txdID )

Required Arguments

  • txdID: the TXD ID you want to have un-assigned.

Returns

Returns true if the TXD was successfully freed, false otherwise.

Example

-- TODO
-- Allocate
local newTxdId = engineRequestTXD("MYTEX")

-- Remove
engineFreeTXD(newTxdId)

See Also