DoesConfigExist

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

If you have defined config files in your resource (see meta.xml on how to define these), this function will return whether the given config exists.


Syntax

API.doesConfigExist(string configName);

Required Arguments

  • configName: parameter input should be in string type.

NOTE: This function returns data in bool type.

Usage example(s)

if (API.doesConfigExist("my-config.xml")) {
  // Do stuff...
}

References