Skip to content

engineSetRadarMapTile

Client-side

Available in Neon, not standard MTA

Registers or replaces a resource-owned TXD in one cell of Neon's sparse 40 × 40 native radar grid.

Syntax

bool engineSetRadarMapTile(int column, int row, txd tile)

Arguments

columnint

Logical radar column from 0 through 39.

rowint

Logical radar row from 0 through 39.

tiletxd

A TXD created by the calling resource and containing the radar tile texture.

Returns

true when the tile was accepted; false for an invalid/protected cell, foreign TXD, unreadable TXD data, or registration failure.

Ownership and lifecycle

The resource that creates the TXD owns its tiles. Destroy the TXD or stop the resource and Neon unregisters them.

Important behavior
  • The stock 12 × 12 San Andreas cells are protected.
  • Compressed source bytes are copied into engine-owned state; the source TXD still anchors ownership.

Example

local tile = engineLoadTXD("radar/radar00.txd")
assert(tile and engineSetRadarMapTile(30, 20, tile))

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →