CyberM.assets

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

client runtime2 functionsMarkdown

list

SHARED

CyberM.assets.list()

Lists generic files declared by the current resource.

Returns the resource files declared by the current manifest. It is an allow-list view, not a directory listing, and does not grant access to undeclared files or arbitrary paths.

Returns

  • array of relative paths

Registered in ResourceHost.cpp as LuaAssetList (line 6541).

texture

SHARED

CyberM.assets.texture(path)

Validates a declared PNG texture for resource APIs.

The path must match the manifest's files allowlist. PNG textures are limited to 512 KiB and 512 by 512 pixels.

Parameters

  • pathstringrequired

Returns

  • descriptor { type, asset, mime, width, height, bytes }, or nil
  • reason

Registered in ResourceHost.cpp as LuaAssetTexture (line 6540).

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