Applications

File Path: shared/config.apps.lua

Example Application

["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.

Last updated