🛠️Custom App
Detailed section for Adding Custom Application.
If you want to use the Template to create a custom application, you can access it from this link.
After installation, you need to make an edit similar to the template below in ui/config.js
to add the application to the phone.
{
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.)
},
So what are the available functions.
These are the functions used for the UI Part!
These are the functions used for the Lua Part!
Last updated