CyberM.markers

Runs inside the game process. Reads and presentation are local; anything that changes shared state has to go through the server.

client runtime5 functionsMarkdown

clear

GAME

CyberM.markers.clear()

Removes every 3D marker owned by the calling resource.

Requires world.markers; other resources are unaffected.

Returns

  • true on success, otherwise false
  • reason

Registered in ResourceHost.cpp as LuaMarkerClear (line 6800).

create

GAME

CyberM.markers.create(options)

Creates a resource-owned 3D world marker.

Requires world.markers. Options require position and accept shape, style, radius, maxDistance, minDistance, and visible. The returned decimal-string handle preserves its full 64-bit identity.

Parameters

  • optionstablerequired

Returns

  • marker handle string, or nil
  • reason

Registered in ResourceHost.cpp as LuaMarkerCreate (line 6797).

list

GAME

CyberM.markers.list()

Lists the calling resource's 3D markers.

Requires world.markers. Each snapshot includes its requested definition and whether the native renderer currently presents it.

Returns

  • array of { id, shape, style, radius, maxDistance, minDistance, visible, rendered, position }, or nil
  • reason

Registered in ResourceHost.cpp as LuaMarkerList (line 6801).

remove

GAME

CyberM.markers.remove(id)

Removes one resource-owned 3D marker.

Requires world.markers.

Parameters

  • idstringrequired

Returns

  • true on success, otherwise false
  • reason

Registered in ResourceHost.cpp as LuaMarkerRemove (line 6799).

update

GAME

CyberM.markers.update(id, patch)

Patches a resource-owned 3D marker.

Requires world.markers. Only supplied fields are changed, and ownership prevents mutation of another resource's marker.

Parameters

  • idstringrequired
  • patchtablerequired

Returns

  • true on success, otherwise false
  • reason

Registered in ResourceHost.cpp as LuaMarkerUpdate (line 6798).

For agents and LLMs: this page as Markdown · llms.txt · llms-full.txt