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:

shared_script '@sn_lib/main.lua'

3) Register App

In a client script within the script add the following:

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
})

Last updated