πCustom apps
We offer you exports that can assist you in developing your own applications and integrating them into your phone.
Configβ
Config.CustomApps = {
{
key = "your-app-key", -- key is used to identify the app, must be unique.
name = "your-app-name", -- Display name of the app
defaultApp = true, -- Wether to show it by default or add it as downloadable from `Addapp`.
game = true -- If true the app will show under games section in play store. Optional.
ui = "https://cfx-nui-" .. GetCurrentResourceName() .. "/ui/dist/index.html", -- A link to a nui page. Built version.
-- App icon. You can use a link or a local image. Simply paste your app image in `/build/(yos/humanoid)/apps/{key}.png`
-- Make sure the file name matches the key.
icon = { -- Optional
yos = "https://cdn-icons-png.flaticon.com/512/2314/2314912.png", -- YPhone OS icon.
humanoid = "https://cdn-icons-png.flaticon.com/512/566/566312.png", -- YFlip OS icon.
},
disabledJobs = {"police"}, -- Not available for Police job
allowedJobs = {"ambulance"} -- Available for Ambulance only
},
{
... -- Add more apps here.
}
}Custom appsβ
How to add a custom app?β
How to remove a custom app?β
Last updated