DoesConfigExist
From GTA Network Wiki
DoesConfigExistServer-Side Function
![]() |
![]() |
---|
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
bool NAPI.Resource.DoesConfigExist(Script scriptEngine, string configName);
Required Arguments
- scriptEngine: A class instance which extends Script. Parameter input should be in Script type.
- configName: parameter input should be in string type.
NOTE: This function returns data in bool type.
Usage example(s)
class MyClass : Script { //... if (NAPI.Resource.DoesConfigExist(this, "my-config.xml")) { // Do stuff... } //... }
Changelog
Version | Description |
---|---|
1.0 | Release. |