Custom App Usage
# GetCurrentTabletData – Usage Guide
This document explains how to use the `GetCurrentTabletData` export provided by `0r-smarttab` to access the currently open tablet’s data (including gallery photos) from any client-side Lua resource.
---
## 1. What `GetCurrentTabletData` does
The export:
```lua
local tablet = exports['0r-smarttab']:GetCurrentTabletData(options){
isOpen = boolean, -- whether the tablet UI is currently open
serial = string|nil, -- active tablet serial, or nil if none
gallery = table|nil, -- optional, only when requested
}2. Basic usage
3. Including gallery data
4. Typical use cases
4.1 Custom apps
4.2 Job / utility scripts
5. Notes and caveats
Last updated