ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setResourceInfo

Function

setResourceInfo

ServerResourcesIdentical to MTA:SA

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")

See also