# Config

```lua
Config = {}

Config.Debug = true

Config.WholesaleItems = {
	['phone'] = { label = 'Phone', price = 100},
	['radio'] = { label = 'Radio', price = 100},
	['hotdog'] = { label = 'Hotdog', price = 10},
	['cola'] = { label = 'Cola', price = 25 },	
	['vesi'] = { label = 'Water', price = 10 },	
	['contract'] = { label = 'Vehicle contract', price = 200 },	
	['kahvi'] = { label = 'Coffee', price = 25},
	['tupakkaaski'] = { label = 'Cigarettes', price = 400},
	['sytkari'] = { label = 'Lighters',	price = 200},
}

Config.Locale = 'en' -- en / fi

Config.NameChangePrice = 5000

Config.ImagePath = 'nui://ox_inventory/web/images/' -- where your item images are located at

Config.RemoveInActive = {
	enabled = true,
	duration = 28, -- if nothing has been added / removed to sale for this time period the shop will be automatically wiped and put to sale again (vendings just deleted)
}

Config.DefaultTitle = "Shop" -- if shop is not owned by anyone / in title & blip
Config.DefaultTitleVending = "Vending Machine" -- if shop is not owned by anyone / in title & blip

Config.BankPurchaseItem = nil -- set here if you want the script to check for item on purchase like "bankcard" for example.

Config.DefaultItems = {
    
    {item = 'phone', label = 'Phone', price = 400, count = 9999},
    {item = 'radio', label = 'Radio', price = 300, count = 9999},
    {item = 'vesi', label = 'Water', price = 50, count = 9999},
    {item = 'hotdog', label = 'Hotdog', price = 50, count = 9999},

}


Config.VendingMachines = {
	enabled = true, -- enable system or no
	blips = false, -- whether to show blips for placed vending machines in map
	item = 'vending', -- register this item to your framework/inventory
	prop = 'prop_vend_snak_01', -- this will be used as the prop for placed vending machines
	maxVending = 1, -- how many vending machines ONE player can place
	Draw3D = {
		enabled = false, -- draws 3D text on vending machine with shop name when close
		title = '%s | Vending Machine',
	},
	blockedZones = { -- in these places you cant place vending machines
		{ 
			coords = vector3(440.4718, -983.1094, 43.6917),
			radius = 20.0,
		},
	},
}


Config.WholesalePedPoints = { -- when you order items from wholesale the pickup npc is spawned to one of the locations below

	vector4(-965.1562, -2067.1799, 8.4059, 138.4453),
	vector4(868.4834, -1629.0880, 29.2480, 89.4155),
	vector4(1930.0005, 4635.1343, 39.4667, 1.2696),
	vector4(2335.6147, 4859.6943, 40.8082, 226.4784),
	vector4(-246.7678, 6068.5381, 31.3445, 135.5911),

}

Config.Shops = {
    ['shop1'] = {
        price = 600000,
        bossMenu = {
            coords = vec3(-1219.97, -911.25, 12.33),
            range = 3.0,
        },
        shop = {
            coords = vec3(-1222.73, -907.08, 12.33),
            range = 4.0,
        }
    },
	
    ['shop2'] = {
        price = 600000,
        bossMenu = {
            coords = vec3(-710.3110, -905.3671, 19.1894),
            range = 3.0,
        },
        shop = {
            coords = vec3(-706.7123, -913.7655, 19.3120),
            range = 4.0,
        }
    },
	
	['shop3'] = {
        price = 600000,
        bossMenu = {
            coords = vec3(1165.7804, 2714.3652, 38.1577),
            range = 3.0,
        },
        shop = {
            coords = vec3(1165.9418, 2710.1099, 38.3393),
            range = 4.0,
        }
    },
	
	--[[['shop4'] = { -- KESKIMAA
        price = 550000,
        bossMenu = {
            coords = vec3(1391.2426, 3609.2390, 33.9810),
            range = 3.0,
        },
        shop = {
            coords = vec3(1393.1072, 3605.8894, 35.0987),
            range = 4.0,
        }
    },]]
	
	['shop5'] = {
        price = 450000,
        bossMenu = {
            coords = vec3(1707.1731, 4921.6738, 41.9478),
            range = 3.0,
        },
        shop = {
            coords = vec3(1698.3453, 4923.4868, 42.1838),
            range = 4.0,
        }
    },
	
	['shop6'] = {
        price = 400000,
        bossMenu = {
            coords = vec3(1735.3394, 6419.0845, 34.9333),
            range = 3.0,
        },
        shop = {
            coords = vec3(1728.6082, 6414.2290, 35.3),
            range = 4.0,
        }
    },
		
	----------	
	['shop7'] = {
        price = 600000,
        bossMenu = {
			coords = vec3(29.5090, -1340.6774, 29.3748),
            range = 3.0,
        },
        shop = {
            coords = vec3(25.4590, -1347.9218, 29.5871),
            range = 4.0,
        }
    },
	
	['shop8'] = {
        price = 550000,
        bossMenu = {
			coords = vec3(-44.6891, -1748.8894, 29.4208),
            range = 3.0,
        },
        shop = {
            coords = vec3(-47.3005, -1757.5917, 29.5717),
            range = 4.0,
        }
    },

	['shop9'] = {
        price = 550000,
        bossMenu = {
			coords = vec3(379.0907, 331.8034, 103.5),
            range = 3.0,
        },
        shop = {
            coords = vec3(373.6819, 325.5898, 103.8),
            range = 4.0,
        }
    },
	
	['shop10'] = {
        price = 450000,
        bossMenu = {
			coords = vec3(-3250.4988, 1005.7286, 12.9346),
            range = 3.0,
        },
        shop = {
            coords = vec3(-3242.2483, 1000.6113, 12.9776),
            range = 4.0,
        }
    },
	
	['shop11'] = {
        price = 550000,
        bossMenu = {
			coords = vec3(1131.5757, -982.5526, 46.4176),
            range = 3.0,
        },
        shop = {
            coords = vec3(1134.8900, -982.3538, 46.55),
            range = 4.0,
        }
    },
	
	['shop12'] = {
        price = 450000,
        bossMenu = {
			coords = vec3(2674.5889, 3287.0278, 55.1),
            range = 3.0,
        },
        shop = {
            coords = vec3(2679.0798, 3280.2092, 55.4),
            range = 4.0,
        }
    },
	
	['shop13'] = {
        price = 500000,
        bossMenu = {
			coords = vec3(1960.9713, 3748.2822, 32.3),
            range = 3.0,
        },
        shop = {
            coords = vec3(1961.3317, 3740.1421, 32.52),
            range = 4.0,
        }
    },
	
	['shop14'] = {
        price = 500000,
        bossMenu = {
			coords = vec3(-2963.7981, 390.3425, 14.8107),
            range = 3.0,
        },
        shop = {
            coords = vec3(-2967.1021, 390.9292, 15.1943),
            range = 4.0,
        }
    },
	
	['shop15'] = {
        price = 425000,
        bossMenu = {
			coords = vec3(-3046.8679, 587.2919, 7.9),
            range = 3.0,
        },
        shop = {
            coords = vec3(-3038.8711, 585.7249, 8.1),
            range = 4.0,
        }
    },
	
	['shop16'] = {
        price = 600000,
        bossMenu = {
			coords = vec3(1159.0889, -315.4100, 69.2083),
            range = 3.0,
        },
        shop = {
            coords = vec3(1163.9740, -322.9288, 69.3574),
            range = 4.0,
        }
    },
	
	['shop17'] = {
        price = 600000,
        bossMenu = {
			coords = vec3(168.7852, 6642.8052, 31.6374),
            range = 3.0,
        },
        shop = {
            coords = vec3(160.8326, 6640.5059, 31.832),
            range = 4.0,
        }
    },
	
	
	
}

```

