GetWebSurfaceMapObject
The map object a web surface of the map shows.
Syntax
Section titled “Syntax”GetWebSurfaceMapObject(surface)| Parameter | Type | |
|---|---|---|
surface |
number | a web surface (an entity id) |
Returns
Section titled “Returns”number - the map object’s id; nil for a mode’s own surface (CreateWebSurface)
Example
Section titled “Example”function OnPlayerUseWebSurface(pid, surface) local board = GetWebSurfaceMapObject(surface) if board then Log("the notice board " .. board .. " was read") endendSee also
Section titled “See also”GetMapObjectSurface · CreateMapSurface · the The server’s map group of the index
