- Documentation
- Server functions
- setResourceInfo
Function
setResourceInfo
Writes an attribute into <info> in the resource's meta.xml. In the current server version the function is not wired up yet and returns false with a warning.
Syntax
bool setResourceInfo(resource theResource, string attribute [, string value])Arguments
theResourceresource- The resource.
attributestring- The attribute name.
valuestring, optional- The value; without it the attribute is removed.
Returns
true on success.
Example
setResourceInfo(getThisResource(), "version", "1.1")