Garry's Mod Wiki

gmsave.LoadMap

  gmsave.LoadMap( string mapData, Player ply = NULL, function callback = nil )

Description

Loads a saved map.

Arguments

1 string mapData
The JSON encoded string containing all the map data.
2 Player ply = NULL
The player to load positions for.
3 function callback = nil
A function to be called after all the entities have been placed.