CreateThread(function()
while GetResourceState("fd_laptop") ~= "started" do
Wait(500)
end
--
local added, errorMessage = exports.fd_laptop:addCustomApp({
id = "testing_app",
name = "Testing App",
isDefaultApp = true,
needsUpdate = false,
icon = 'question.svg',
ui = ("https://cfx-nui-%s/web/index.html"):format(GetCurrentResourceName()),
keepAlive = true,
ignoreInternalLoading = true,
windowActions = {
isResizable = false,
isMaximizable = false,
isClosable = true,
isMinimizable = true,
isDraggable = false
},
windowDefaultStates = {
isMaximized = true,
isMinimized = false
},
})
if not added then
print("Could not add app:", errorMessage)
end
end)