# Custom Tablet Apps

## 1) Create a resource with the html filling the whole page

## **2) Add sn\_lib in your** fxmanifest.lua

Add the following to your fxmanifest.lua:

```lua
shared_script '@sn_lib/main.lua'
```

## 3) Register App

In a client script within the script add the following:

```lua
SNLib.registerTabletApp({ 
  id = 'appID',
  label = 'App Label',
  icon = 'nui://'..GetCurrentResourceName()..'/app/icon.png', -- update to your path
  url = 'nui://'..GetCurrentResourceName()..'/app/index.html', -- update to your path
})
```

