👾 Paid💻 Laptop⚙️ ConfigurationsApplications

Applications

config.apps.lua
Config["Apps"] = {
    ["contacts"] = {
        name = "Contacts",
        icon = "contacts",
        page = "contacts",
        itemNeeded = false,
        isDisabled = false,
        id = 1,
        canInteract = function()
            -- Anything else besides the things listed above (items, metadata)
            return true
        end
    },
    ["boosting"] = {
        name = "Boosting",
        icon = "boosting",
        nuicallback = "openBoosting",
        itemNeeded = "vpn",
        isDisabled = false,
        id = 2,
        canInteract = function()
            -- Anything else besides the things listed above (items)
            return true
        end
    },
    ["racing"] = {
        name = "Racing",
        icon = "racing",
        nuicallback = "openRacing",
        itemNeeded = "racing-dongle",
        isDisabled = false,
        id = 3,
        canInteract = function()
            -- Anything else besides the things listed above (items)
            return true
        end
    },
    ["quests"] = {
        name = "Quests",
        icon = "achievments",
        page = "quests/home",
        itemNeeded = false,
        isDisabled = false,
        id = 4,
        canInteract = function()
            -- Anything else besides the things listed above (items)
            return true
        end
    },
    ["crimereputation"] = {
        name = "Crime Rep.",
        icon = "contracts",
        page = "crimerep",
        itemNeeded = false,
        isDisabled = true,
        id = 5,
        canInteract = function()
            -- Anything else besides the things listed above (items)
            return true
        end
    },
    ["hq"] = {
        name = "HQ",
        icon = "market",
        page = "hq",
        itemNeeded = false,
        isDisabled = false,
        id = 6,
        canInteract = function()
            -- Anything else besides the things listed above (items)
            return exports["bd-computer"]:IsPlayerInStrain()
        end
    },
}
  • name (string): The display name of the application

  • icon (string): The id of the used SVG icon. Future custom apps won’t support SVG’s, but just normal images.

  • page? (string): The route that will be navigated when the app is clicked.

  • nuicallback? (string): The NUI Callback that will be executed when the app is clicked.

  • ui? (string): The UI URL that will be rendered from an outside resource when the app is clicked.

  • itemNeeded (string/boolean): The item that the player needs to open the app or false if no item is required

  • isDisabled (boolean): Whether or not the app is disabled (Will appear as ”??????” in apps section with a lock icon)

  • id (number): The id that the app is identified and sorted by.

  • canInteract (function): Should return true or false whether the player can open the app or not. This can be used for any other restrictions you might need.