Apps

To enable/disable an APP go to Config.lua and return true/false inside isEnabled function.

{
        name = "darkmarket",
        label = "Dark Marker",
        isEnabled = function()
            return false
        end
 },

Enable APP with item

To enable an APP with an Item use the export exports['av_laptop']:hasItem(itemName)


{
        name = "meth",
        label = "Humane Labs",
        isEnabled = function()
            return exports['av_laptop']:hasItem('black_usb')
        end
},

Enable APP with Hotspot

  • To enable an APP when the user connects to a hotspot you can use the WiFi export, the APP will be removed if the player gets disconnected from the hotspot.

{
        name = "boosting",
        label = "Boosting",
        isEnabled = function()
            local hotspot = exports['av_laptop']:WiFi()
            return (hotspot == "uwu_cafe")
        end
},
  • You can use any export/check to enable an App, just make sure is client side.

Last updated