WriteResourceData

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 20:41, 21 September 2026 by QCherry (talk | contribs) (Release 0.1.4 BUILD133 / Protocol 36 and document authenticated event origin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

writeResourceData

Since 0.1.4.

Server Functions.

ok = writeResourceData(key, json)

Writes a nonempty valid JSON string to the calling resource's .storage/data-KEY.json. Returns boolean success and retains one prior .bak on overwrite. Does not validate your application schema.

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