EngineFreeTXD

From Multi Theft Auto: Wiki
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

Minimum server version n/a
Minimum client version 1.6.0.22190

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.6.0.22190" />

See Also