GetThisResource

From GT-MP
Jump to: navigation, search
GetThisResource
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Function Description

Syntax

API.getThisResource();


NOTE: This function returns data in string type.

Usage example(s)

Example Description

public void outputResourceInfo()
{
	string resource = API.getThisResource();
	string author = API.getResourceAuthor(resource);
	string name = API.getResourceName(resource);
	string version = API.getResourceVersion(resource);
	
	// Message the server about this resource!
	API.sendChatMessageToAll("* Resource: " + name + " - Author: " + author + " - version: " + version);
}

References