Custom Apps
Here you will find information about how to integrate custom apps inside the laptop by using your own app templates.
π App Configuration
Config.AppSettings = {
id = "custom-app", -- Unique App ID (must match iframeId later)
name = "Custom App", -- Display name
url = 'https://cfx-nui-' .. GetCurrentResourceName() .. '/web/index.html',
color = "from-blue-500 to-indigo-600", -- Gradient color for laptop UI
icon = "Laptop", -- HeroIcons name for the app
isVisible = function ()
return true -- Logic for app visibility (job checks, permissions, etc.)
end,
onAppOpen = function()
TriggerEvent("custom-app:client:openApp")
end,
onAppClose = function()
TriggerEvent("custom-app:client:closeApp")
end,
}π Registering NUI Callbacks
π Sending Data to the App
βοΈ React Setup
π Reference
Last updated