😋Custom Apps
A step-by-step guide on how to create and and custom apps to your laptop!
How can I create a custom app?
If you wish to implement a custom user interface (UI) for your application, you must develop a separate resource using our templates.
How can I add my app after developing it?
There are 2 ways you do that. The first and most straight-forward way is to set this variable in your newly created resource local addWithResourceStart = false
to true. That way everytime this resource is ensured/restarted it will delete and re-add the application. The second way is shown below. If you are going with the seconds way make sure the variable above is set to false. After creating your new resource follow the guide below and add the app to your config.apps.lua as shown.
Example Custom App (In laptop's config)
name (string):
The display name of the applicationicon (string):
The id of the used SVG icon. Future custom apps won't support SVG's, but just normal images.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 requiredisDisabled (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.
Exports - Adding an app
To add a custom app, you can use the following export:
Exports - Removing an app
To remove a custom app, you can use the following export:
Last updated