# Installing and Setup

Drag **fdsdev\_ultraBanking** into your resources folder and add this string to server.cfg

Dependencies: ox\_target/qb-target/esx\_textui

```lua
start fdsdev_ultraBanking
```

This is the configuration file. You can add some custom functions thanks to the edit.lua (server and client) files with framework references.

```lua
Config = {}
Config.Framework = "esx" -- esx, qb

-- Available locales ---
-- shared/locales.lua to edit / create a custom locale

-- en --> English
-- fr --> French
-- de --> Deutsch
-- es --> Spanish
-- pt --> Portuguese
-- ru --> Russian
-- zh --> Chinese
-- ja --> Japanese
-- ko --> Korean
-- nl --> Dutch
-- tr --> Turkish

Config.Locale = "en" 


Config.DefaultPIN = 0000 -- Default banking PIN
Config.Currency = {
	currencyTitle = "USD",
	currencySymbol = "$"
}
Config.Iban = {
	Personal = { -- Settings for Personal IBANS
		prefix = "FDS", -- Personal IBAN PREFIX
		numbers = 6, -- Personal IBAN numbers
		maxChars = 10, -- Personal IBAN max characters when it is changed by a player to a custom one in the settings
		allowLetters = true, -- Sets if custom IBAN can have letters or only numbers
		changeCost = 500, -- Sets the cost of IBAN change
	}, 
	Society = {  -- Settings for Society IBANS (must have enabled societies with ULTRA BOSS MENU)
		prefix = "SOC", -- Must be different from Personal ibans
		numbers = 6, -- Same as personal but this setting is for Society ibans
		maxChars = 10, -- Same as personal but this setting is for Society ibans
		allowLetters = true, -- Same as personal but this setting is for Society ibans
		changeCost = 500, -- Same as personal but this setting is for Society ibans
	}
}

-- SOCIETY CONFIG
Config.UltraBossMenu = true -- Needed to let society tab work (https://fdsdevelopment.tebex.io/category/2582491)
Config.SocietyAccess = {
	["boss"] = true,
	["recruit"] = false
}


-- BANK/ATM POSITION
Config.Target = "ox" -- ox, qb, esx (esx-textui - not recommended for performances)
Config.Banks = { -- https://docs.fivem.net/docs/game-references/blips/
	{show = true, sprite = 108, color = 2, scale = 0.7, coords = vec3(150.266, -1040.203, 29.374), title = "Bank", BankDistance = 3},
	{show = true, sprite = 108, color = 2, scale = 0.7, coords = vec3(-1212.980, -330.841, 37.787), title = "Bank", BankDistance = 3},
	{show = true, sprite = 108, color = 2, scale = 0.7, coords = vec3(-2962.582, 482.627, 15.703), title = "Bank", BankDistance = 3},
	{show = true, sprite = 108, color = 2, scale = 0.7, coords = vec3(-112.202, 6469.295, 31.626), title = "Bank", BankDistance = 3},
	{show = true, sprite = 108, color = 2, scale = 0.7, coords = vec3(314.187, -278.621, 54.170), title = "Bank", BankDistance = 3},
	{show = true, sprite = 108, color = 2, scale = 0.7, coords = vec3(-351.534, -49.529, 49.042), title = "Bank", BankDistance = 3},
	{show = true, sprite = 108, color = 3, scale = 1.0, coords = vec3(254.938, 217.684, 106.287), title = "Pacific Bank", BankDistance = 3},
	{show = true, sprite = 108, color = 3, scale = 1.0, coords = vec3(257.98, 226.1, 106.282), title = "Pacific Bank", BankDistance = 3},
	{show = true, sprite = 108, color = 2, scale = 0.7, coords = vec3(1175.064, 2706.643, 38.094), title = "Bank", BankDistance = 3},
}

Config.ATM = {
	models = { -- ATM models
		-870868698, 
		-1126237515, 
		-1364697528, 
		506770882
	},
	distance = 1.5,
}
```
