Drone

config.drone.lua
Config["Drone"] = {
    DroneObject = "ch_prop_casino_drone_02a", -- Drone object name
    CaseObject = "w_am_case",                 -- Case object name
    ZOffSet = 50,                             -- From how high the drone will start flying in
 
    LandingTime = 1,                          -- How long it takes for the drone to land (IN MINUTES)
    WaitTime = 10,                            -- How long the drone will wait before leaving (IN MINUTES)
 
    Locations = {
        {
            name = "Los Santos",
            coords = vector4(-1530.9960, -566.6176, 33.4933, 219.4383),
        },
        {
            name = "Los Santos",
            coords = vector4(-1244.5145, -1407.4933, 4.3067, 208.8174),
        },
        {
            name = "Los Santos",
            coords = vector4(-331.6182, -1489.2324, 30.6290, 255.8010),
        },
        {
            name = "Sandy Shores",
            coords = vector4(1873.88, 3757.76, 34.46, 119.64),
        },
        {
            name = "Sandy Shores",
            coords = vector4(1419.7219, 3620.3516, 34.8884, 17.6913),
        },
        {
            name = "Sandy Shores",
            coords = vector4(1963.6716, 3846.4229, 31.9967, 123.0199),
        },
        {
            name = "Grapeseed",
            coords = vector4(1694.9237, 4939.7837, 42.0286, 57.2309),
        },
        {
            name = "Grapeseed",
            coords = vector4(2552.2458, 4677.8452, 33.9132, 251.1405),
        },
        {
            name = "Grapeseed",
            coords = vector4(2130.1741, 4801.0308, 41.1507, 276.3474),
        },
        {
            name = "Paleto Bay",
            coords = vector4(-27.4517, 6450.1616, 31.4376, 106.7475),
        },
        {
            name = "Paleto Bay",
            coords = vector4(-234.7941, 6256.7451, 31.4746, 210.3464),
        },
        {
            name = "Paleto Bay",
            coords = vector4(-343.5601, 6149.0308, 31.4877, 238.8901),
        },
    },
 
    Items = {
        {
            id = 1,
            name = "weapon_heavypistol",
            displayName = "Heavy Pistol",
            image = "weapon_heavypistol.png",
            price = 250,
            availability = 1,        -- How many sandwiches are available in the drone app per resource/server restart
            canPurchase = function() -- If it returns false the player won't be able to purchase the item nor see it in the drone app
                return true
            end
        },
        {
            id = 2,
            name = "weapon_appistol",
            displayName = "AP Pistol",
            image = "weapon_appistol.png",
            price = 150,
            availability = 2,        -- How many sandwiches are available in the drone app per resource/server restart
            canPurchase = function() -- If it returns false the player won't be able to purchase the item nor see it in the drone app
                return true
            end
        },
        {
            id = 3,
            name = "heist_usb_pink",
            displayName = "Pink USB",
            image = "heist_usb_pink.png",
            price = 20,
            availability = 30,       -- How many sandwiches are available in the drone app per resource/server restart
            canPurchase = function() -- If it returns false the player won't be able to purchase the item nor see it in the drone app
                return true
            end
        },
        {
            id = 4,
            name = "grinder",
            displayName = "Grinder",
            image = "grinder.png",
            price = 150,
            availability = 2,        -- How many sandwiches are available in the drone app per resource/server restart
            canPurchase = function() -- If it returns false the player won't be able to purchase the item nor see it in the drone app
                return true
            end
        },
    }
}