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.
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.
{
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.)
},
Last updated