DoesSettingExist

From GT-MP
Jump to: navigation, search
DoesSettingExist
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Checks if the given local setting exists.


Syntax

API.doesSettingExist(string name);

Required Arguments

  • position: parameter input should be in string type.

NOTE: This function returns data in bool type.

Usage example(s)

if (API.doesSettingExist("test")) {
  var test = API.getSetting("test");
  // Do something with test
}

References