Back to TPG

TPG.Maps.LoadCustom

S🏷️ Custompoints

Part of TPG namespace

TPG.Maps.LoadCustom(mapName)
View on GitHub|gamemode/maps/sv_custom_points.lua:37-50
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Load a map's saved points from disk into TPG.Maps.Custom, replacing whatever was cached for it. A missing file is not an error: it just means no points have been placed yet, and yields an empty { points = {} } record.

Parameters

NameTypeDescription
mapName?stringDefaults to the running map.

Returns

TypeDescription
tableThe loaded (or freshly created) `{ points = {...} }` record.

Examples

No examples available.

Used In

No usages found in the codebase.