Skip to content

engineParseSAMPMap

Client-side

Available in Neon, not standard MTA

Parses Texture Studio / SA-MP Pawn map source into inert objects, building removals, material overrides, and diagnostics.

Syntax

table engineParseSAMPMap(string source)

Arguments

sourcestring

Complete Pawn map source text.

Returns

A result table with success, counts, objects, removedBuildings and diagnostics.

Ownership and lifecycle

Parsing creates inert data. Objects, custom models, material overrides, removals, and any temporary streaming-limit split remain owned by the calling client resource and must be cleaned up when that resource stops.

Important behavior
  • Parsing does not create elements or load models.
  • Object records preserve virtual world, interior, stream/draw distance and source location metadata.

Example

local parsed = engineParseSAMPMap(mapSource)
if not parsed.success then
outputDebugString(parsed.diagnostics[1].message, 1)
end

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →