GetResourceName

From GTA Network Wiki
Jump to: navigation, search

GetResourceName
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Gets the resource name from the resource passed in to the function.

Syntax

string NAPI.Resource.GetResourceName(string resource);

Required Arguments

  • resource: parameter input should be in string type.

NOTE: This function returns data in string type.

Usage example(s)

Example Description

public string resourceName(string resource)
{
	//Stop here if the resource string is empty.
	if (resource.Length < 0)
		return;
	
	return NAPI.Resource.GetResourceName(resource);
}

Changelog

Version Description
1.0 Release.

References