Registering the Application

To make the phone recognize your new application, you must register it using the exported function in your client/main.lua.

Icon Background Object
{
    angle = 45,
    colors = { "#FF0000", "#0000FF" }
}
Job Object
{
    name = "police",
    grade = 0
}

AddApplication

Registers a new application icon on the home screen.

exports['17mov_Phone']:AddApplication(appData)
Property
Type
Description

name

string

Unique identifier for the application.

label

string

The display name shown under the icon.

ui

string

URL to the app's index.html.

icon

string

Path to the icon image.

iconBackground

string | object

The Icon Background Object or HEX VALUE

default

boolean

If true, the app cannot be uninstalled and is preinstalled

preInstalled

boolean

If true, the app is installed by default on new phones.

resourceName

string

The name of your resource

rating

float

Store rating (1-5)

job

object

The Job Object or nil. This parameter is optional. Here you can restrict app to certain jobs

RemoveApplication

Last updated