Config

Config                      	= {}

Config.Locale = GetConvar('esx:locale', 'fr')

Config.DrawDistance               = 3.0 -- How close do you need to be for the markers to be drawn (in GTA units).
Config.Distance					  = 1.5

Config.RiskedRates				= {"1.1", "1.2", "0.9", "0.8", "1.3"}
Config.SavingsAccountRemove		= true 	-- true = money removed from bank society account | false = generated money
Config.CRONSavingsTime			= {00, 52}
Config.CRONRiskedSavingsTime	= {20, 06}
Config.CRONLoanDeadlineTime		= {00, 54}
Config.CRONLoanTime				= {21, 58}
Config.UseCommand				= false
Config.CommandName				= 'CRON'
Config.PositionMenu 			= 'top-left' --'top-left' / 'top-right' / 'bottom-left' / 'bottom-right'
Config.Target					= false

Config.Notify = function(key, source, ...)
    local service = IsDuplicityVersion()
    local description, data
    if ... then
         description = (Config.Notifications[key].description):format(...)
         data = {
            id = Config.Notifications[key].id,
            title = Config.Notifications[key].title,
            description = description,
            position = Config.Notifications[key].position,
            style = Config.Notifications[key].style,
            icon = Config.Notifications[key].icon,
            type = Config.Notifications[key].type,
            iconColor = Config.Notifications[key].iconColor
         }
    end
    lib.notify(service and source or (data or Config.Notifications[key]), service and (data or Config.Notifications[key]))
end

Config.Options = {
	'Informations',
	'Déposer',
	'Retirer',
	'Taux',
	'Fermer',
	'Ouvrir',
	'Geler',
	'Avancer Echéance',
	'Reculer Echéance',
	'Ré-Ouverture'
}

Config.Stash = {
	slots = 50,
	maxWeight = 100000
}

Config.BankBlip = {
	Activate = true,
	Coords = vector3(229.8, 214.0, 105.5),
	Sprite  = 108,
	Scale   = 0.7,
	Colour  = 0
}

Config.Zones = {

	BankActions = {
		Pos   = {
			vector3(248.228531, 209.738693, 106.286751),
			vector3(254.139816, 207.539368, 106.286758),
			vector3(243.691956, 230.699753, 106.286880),
			vector3(246.376083, 229.832886, 106.287102),
			vector3(248.538879, 229.104233, 106.287125),
			vector3(251.056534, 227.778702, 106.286911),
			vector3(247.674286, 209.140335, 110.283005),
			vector3(242.002884, 211.125000, 110.283005),
			vector3(233.043610, 220.487793, 110.282837)
		},
		textUI = {
			message = "Accéder à la gestion",
			position = "top-center",
			icon = 'computer',
			borderRadius = 0,
			backgroundColor = '#000000',
			color = 'white'
		},
		icon = "fa-solid fa-euro-sign",
		onSelect = function()
			action('openMenuBanking')
		end,
		ox_grade = 0, -- Minimum access rank
		activate = true
	},

	Inventory = {
		Pos   = {
			vector3(242.077316, 230.252670, 106.386804)
		},
		textUI = {
			message = "Accéder au coffre",
			position = "top-center",
			icon = 'box',
			borderRadius = 0,
			backgroundColor = '#000000',
			color = 'white'
		},
		icon = "fa-solid fa-box",
		onSelect = function()
			action('StockBanker')
		end,
		ox_grade = 0, -- Minimum access rank
		activate = true
	},

	BossActions = {
		Pos   = {
			vector3(261.275269, 204.832184, 110.287056),
			vector3(263.809143, 211.351608, 110.287056)
		},
		textUI = {
			message = "Accéder à la gestion",
			position = "top-center",
			icon = 'money-bill',
			borderRadius = 0,
			backgroundColor = '#000000',
			color = 'white'
		},
		icon = "fa-solid fa-euro-sign",
		onSelect = function()
			action('OpenBossMenu')
		end,
		ox_grade = 4, -- Minimum access rank
		activate = true
	}

}

Config.Safe = {
	Safe1 = {
		Slots = 5,
		Wieght = 10000,
		label = 'Coffre Nº1',
		Pos = vec3(262.313568, 220.131882, 101.683296),
		textUI = {
			message = "Coffre #1",
			position = "top-center",
			icon = 'money-bill',
			borderRadius = 0,
			backgroundColor = '#000000',
			color = 'white'
		},
		icon = "fa-solid fa-euro-sign",
		onSelect = function()
			action('Safe1')
		end,
	},
	Safe2 = {
		Slots = 5,
		Wieght = 10000,
		label = 'Coffre Nº2',
		Pos = vec3(259.446228, 218.081375, 101.683334),
		textUI = {
			message = "Coffre #2",
			position = "top-center",
			icon = 'money-bill',
			borderRadius = 0,
			backgroundColor = '#000000',
			color = 'white'
		},
		icon = "fa-solid fa-euro-sign",
		onSelect = function()
			action('Safe2')
		end,
	},
	Safe3 = {
		Slots = 5,
		Wieght = 10000,
		label = 'Coffre Nº3',
		Pos = vec3(258.255371, 214.215759, 101.683334),
		textUI = {
			message = "Coffre #3",
			position = "top-center",
			icon = 'money-bill',
			borderRadius = 0,
			backgroundColor = '#000000',
			color = 'white'
		},
		icon = "fa-solid fa-euro-sign",
		onSelect = function()
			action('Safe3')
		end,
	}
}

Last updated