Notification System

sendNotification

Send a notification to the tablet interface.
apptitle
string
required
App name or title
title
string
required
Notification header
message
string
required
Notification message content
img
string
required
Path to app icon
TriggerEvent("roadpad:sendNotification", {
    apptitle = "APPNAME",
    title = "TITLE",
    message = "MESSAGE",
    img = "/public/img/app/Apps/light_mode/settings.webp"
})

Tablet State Functions

isTabletOpen

Check if the tablet is currently open.
return
boolean
Returns true if tablet is open, false if closed
istabletopen = exports['roadpad']:isTabletOpen()
print(istabletopen) -- returns true or false

isFlashlight

Check if flashlight is enabled.
return
boolean
Returns true if flashlight is enabled, false otherwise
flashlight = exports['roadpad']:isFlashlight()
print(flashlight)

Tablet Control Functions

toggleTablet

Toggle the tablet open/closed state.
exports['roadpad']:toggleTablet()

closeTablet

Close the tablet.
exports['roadpad']:closeTablet()