EngineFreeTXD

From Multi Theft Auto: Wiki
Revision as of 18:26, 3 September 2023 by TheNormalnij (talk | contribs) (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...")
(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 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)

Requirements

This template will be deleted.

See Also