Skip to content

GetWebSurfaceMapObject

The map object a web surface of the map shows.

GetWebSurfaceMapObject(surface)
Parameter Type
surface number a web surface (an entity id)

number - the map object’s id; nil for a mode’s own surface (CreateWebSurface)

function OnPlayerUseWebSurface(pid, surface)
local board = GetWebSurfaceMapObject(surface)
if board then Log("the notice board " .. board .. " was read") end
end

GetMapObjectSurface · CreateMapSurface · the The server’s map group of the index