Config JS
Let's talk about what does what on the Config file.
It is not recommended to actively restart the script. After restarting, always log in again or restart the server. Since it is a highly loaded script, it may cause problems such as timeout.
UseCDN
Type: (boolean)
Details: You can determine whether to use a CDN service for images, gifs, and videos.
CDNProvider
Type: (string)
Details: If you are going to use your own CDN service, you can change this value.
DefaultSettings
Type: (table)
Details: This section allows you to set the default phone settings by default.
SiriSettings
Type: (table)
Details: This section allows you to configure your Siri settings. Detailed information is available in the file.
Advanced911System
Type: (table)
Details: This section allows you to configure your 911 settings. Detailed information is available in the file.
FullSizeImageViewerFit
Type: (boolean)
Details: The section where you can adjust whether the image viewer appears in full screen or in phone size.
MailEnableSuffix
Type: (boolean)
Details: Setting whether to use a suffix when creating an email address.
BluePages
Type: (table)
Details: This section allows you to configure the settings of the Bluepages application. Details are available in the file.
SystemMessages
Type: (table)
Details: This section is where you define system messages. If you do not want to respond to messages from specific numbers, use this section.
X_Settings
Type: (table)
Details: This section allows you to configure the settings of the Kiwitter application. Details are available in the file.
MainApps
Type: (table)
Details: This section is where you can add or remove applications. Details are available in the file.
DefaultApps
Type: (table)
Details: This section allows you to specify the applications that come pre-installed by default on the phone.
Adding a custom application.
Define the new application inside the MainApps array, for example.
{
id: 10, // (required)
order: 10, // (required)
AppName: "Test App", // (required)
open: "nui://examplecustomapp/index.html", // App Open Name (appname or iframe name) (not required)
MenuBtnColor: "white", // Menu Button Color (white/black). Default: "white" (It is recommended not to make changes.)
Descp: "Sounds Good.", // Appstore Description (required)
Size: 566231040, // App Size (Bytes) (required)
IsVertical: true, // Is Vertical (true/false) (required)
Type: "AppsPage", // Appstore Page Type (GamesPage, AppsPage, ArcadePage) (required)
Version: "1.0.0", // App Version (String). Default: "1.0.0" if use "0" Disable Download App. (required)
AppIcon: "https://appicon.com/appicon.png", // (required)
StoreInfo: { // Appstore Info (required)
Price: null, // App Price (Int). Default: null if use null Disable Purchase.
Catagory: "Test Applications", // App Catagory (String)
Age: 12, // App Age (Int)
RatingData: { // App Rating Data
Rating: 3.7, // App Rating (Float) (Max: 5.0)
RatingCount: 1.2 // App Rating Count (Float)
},
ChartInfo: { // App Chart Info
Num: 12 // App Chart Number (Int)
},
Screenshots: [ // App Screenshots (Array)
"https://appscreenshots.com/appscreenshot1.png",
"https://appscreenshots.com/appscreenshot2.png",
// ...
]
}
},
You can add it by making edits on the draft.
Pay attention to the 'id' and 'order' sections. Make sure they are not the same as another application.
If you want to add a default pre-installed application, use the following draft.
{
id: 1, // App ID (required)
order: 1, // App Order Number (required)
AppName: "Test App", // App Name (required)
AppIcon: "https://appicon.com/appicon.png", // App Icon (required)
Whitelist: true, // Whitelisted App (Can't be deleted) (not required)
open: "nui://examplecustomapp/index.html", // App Open Name (appname or iframe name) (not required)
MenuBtnColor: "white" // Menu Button Color (white/black). Default: "white" (It is recommended not to make changes.)
},
If you don't fill in the 'open' variable, the application will be downloaded but not opened.
If you set the 'version' variable to 0, the application will not be downloaded.
Last updated