CyberM.exports

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

client runtime1 functionMarkdown

call

SHARED

CyberM.exports.call(resource, export, […])

Calls a function exported by another resource.

Schedules another running client resource's exported function and returns a generation-bound Promise. Arguments and results must be serializable; unavailable resources, missing exports, stale generations and scheduler saturation are returned immediately as nil, reason.

Parameters

  • resourcestringrequired
  • exportstringrequired
  • anyoptional

Returns

  • whatever the export returns

Registered in ResourceHost.cpp as LuaCallExport (line 6577).

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