engineSetRadarMapTile
Client-side
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
columnintLogical radar column from 0 through 39.
rowintLogical radar row from 0 through 39.
tiletxdA 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
SOURCECLuaEngineDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp INTRODUCED / EXTENDED766727162Read the commit and why the change was made RELATED CATEGORY HARNESS extended-radar-test Category-level coverage · test-resources/extended-radar-test
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Extended native radar works →