π©βπ»Custom App
Custom apps using UI
Adding the app
exports['gks-tablet']:AddCustomApp({
name = "FleetTracker", -- unique app name
appurl = "https://cfx-nui-my-tablet-app/ui/index.html", -- your NUI URL
icons = "https://cfx-nui-my-tablet-app/ui/icon.png", -- app icon
description = "Track department vehicles", -- App Store description
show = true, -- show in App Store
startapp = false, -- auto-install on home screen
allowjob = { "police", "lspd" }, -- job whitelist (optional)
blockedjobs = {}, -- job blacklist (optional)
labelLangs = { -- localized name (optional)
en = "Fleet Tracker",
tr = "Filo Takip",
},
onOpen = function(tabletUniqueId) -- runs when app opens (optional)
print("Opened on tablet:", tabletUniqueId)
end,
onClose = function(tabletUniqueId) -- runs when app closes (optional)
print("Closed")
end,
})InputChange
Sending a message to the UI
Imported functions
Name
Type
Description
fetchNui
isDarkMode
notify
GetGallery
FullScreenImage
SelectEmoji
setStatusBarColor
Last updated