WriteResourceText

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 18:19, 20 September 2026 by QCherry (talk | contribs) (Document Map Editor, saved maps, static scene deployment and Lua APIs since 0.1.4)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

writeResourceText

Since 0.1.4 (in development; not included in public 0.1.3).

Server Functions.

ok = writeResourceText(key, text)

Writes nonempty text to the calling resource's .storage/data-KEY.lua. Returns boolean success. Does not validate or execute Lua, start a resource, or support arbitrary output paths.

See Resource data storage for parameters, examples, failure handling and limits.