Configuration
1. Configure cl_config.lua
cl_config.lua
In this section, you will configure the client-side configuration file cl_config.lua
. Follow the instructions below to set it up according to your framework (ESX or QBcore).
Config = {}
Config.Header = {
title = "RESMONSTUDIO", -- Title displayed in the header
name = "Bank System" -- The name of the system in the header
}
Config.Options = {
Language = 'en', -- Default language for the system (can be changed to other language codes like 'de', 'fr', etc.)
UseOldEsx = false, -- Set to true to use the old ESX method; set to false for the new ESX export method.
ESX11 = false, -- Set to true if using ESX version 1.1.
SharedObject = {
client = "esx:getSharedObject", -- Event to retrieve the ESX shared object on the client-side.
server = "esx:getSharedObject", -- Event to retrieve the ESX shared object on the server-side.
},
IBANPrefix = "RES", -- Prefix used for IBANs.
IBANNumbers = 6, -- Number of digits in the IBAN.
Timezone = {
Language = "german", -- Default language for the timezone.
TimeUnitSuffix = {
german = "UHR", -- Suffix for time in German.
english = "AM/PM" -- Suffix for time in English.
}
}
}
Config.Blip = { -- General Blip settings
enabled = {
atm = false, -- Set to true to enable ATM blips; false to disable.
bank = true -- Set to true to enable Bank blips; false to disable.
},
sprite = 277, -- Sprite ID for the blip.
display = 4, -- Display setting for the blip (0-4).
scale = 0.8, -- Scale of the blip on the map.
color = 1, -- Color ID for the blip.
shortrange = true, -- Set to true to only show the blip at short distances.
text = "Bank" -- Text displayed when hovering over the blip.
}
Config.Marker = { -- General marker settings
type = 21, -- Marker type.
scale = vector3(1.0, 1.0, 1.0), -- Scale of the marker.
color = { red = 255, green = 0, blue = 0, alpha = 100 }, -- Color settings for the marker.
moveUpAndDown = false, -- Set to true for the marker to move up and down.
rotate = true -- Set to true for the marker to rotate.
}
Config.Position = {
-- Bank Locations
{ coords = vector3(1175.05, 2706.65, 39.09), type = "bank", UseMarker = true },
{ coords = vector3(314.20, -278.60, 55.17), type = "bank", UseMarker = true },
{ coords = vector3(237.15, 217.66, 107.29), type = "bank", UseMarker = true },
{ coords = vector3(264.95, 212.05, 107.29), type = "bank", UseMarker = true },
{ coords = vector3(149.80, -1040.30, 30.37), type = "bank", UseMarker = true },
{ coords = vector3(-112.20, 6469.30, 32.63), type = "bank", UseMarker = true },
{ coords = vector3(-351.50, -49.51, 50.04), type = "bank", UseMarker = true },
{ coords = vector3(-1212.99, -330.83, 38.78), type = "bank", UseMarker = true },
{ coords = vector3(-2962.60, 482.65, 16.70), type = "bank", UseMarker = true },
-- ATM Locations
{ coords = vector3(-284.04, 6224.39, 31.19), type = "atm", UseMarker = false },
{ coords = vector3(-135.17, 6365.74, 31.10), type = "atm", UseMarker = false },
{ coords = vector3(-110.75, 6467.70, 31.78), type = "atm", UseMarker = false },
{ coords = vector3(174.67, 6637.22, 31.78), type = "atm", UseMarker = false },
{ coords = vector3(1703.14, 6426.78, 32.73), type = "atm", UseMarker = false },
{ coords = vector3(1735.11, 6411.04, 35.16), type = "atm", UseMarker = false },
{ coords = vector3(1702.84, 4933.59, 42.05), type = "atm", UseMarker = false },
{ coords = vector3(1967.33, 3744.29, 32.27), type = "atm", UseMarker = false },
{ coords = vector3(1821.92, 3683.48, 34.24), type = "atm", UseMarker = false },
{ coords = vector3(1174.53, 2705.28, 38.03), type = "atm", UseMarker = false },
{ coords = vector3(540.04, 2671.01, 42.18), type = "atm", UseMarker = false },
{ coords = vector3(2564.40, 2585.10, 38.02), type = "atm", UseMarker = false },
{ coords = vector3(-3144.13, 1127.42, 20.87), type = "atm", UseMarker = false },
{ coords = vector3(-1305.40, -706.24, 25.35), type = "atm", UseMarker = false },
{ coords = vector3(-538.23, -854.42, 29.23), type = "atm", UseMarker = false },
{ coords = vector3(-711.16, -818.96, 23.77), type = "atm", UseMarker = false },
{ coords = vector3(-717.61, -915.88, 19.27), type = "atm", UseMarker = false },
{ coords = vector3(-526.57, -1222.90, 18.43), type = "atm", UseMarker = false },
{ coords = vector3(-256.83, -719.65, 33.44), type = "atm", UseMarker = false },
{ coords = vector3(-203.55, -861.59, 30.21), type = "atm", UseMarker = false },
{ coords = vector3(112.41, -776.16, 31.43), type = "atm", UseMarker = false },
{ coords = vector3(112.93, -818.71, 31.39), type = "atm", UseMarker = false },
{ coords = vector3(119.90, -883.83, 31.19), type = "atm", UseMarker = false },
{ coords = vector3(149.46, -1038.95, 29.37), type = "atm", UseMarker = false },
{ coords = vector3(-1216.27, -331.46, 37.77), type = "atm", UseMarker = false },
{ coords = vector3(-56.19, -1752.53, 29.45), type = "atm", UseMarker = false },
{ coords = vector3(-1205.35, -325.58, 37.87), type = "atm", UseMarker = false },
{ coords = vector3(-1215.64, -332.23, 37.88), type = "atm", UseMarker = false },
{ coords = vector3(-2072.41, -316.96, 13.35), type = "atm", UseMarker = false },
{ coords = vector3(-2975.73, 379.77, 14.99), type = "atm", UseMarker = false },
{ coords = vector3(-2962.60, 482.19, 15.76), type = "atm", UseMarker = false },
{ coords = vector3(-3044.22, 595.24, 7.60), type = "atm", UseMarker = false },
{ coords = vector3(1139.02, -469.89, 66.79), type = "atm", UseMarker = false },
{ coords = vector3(1168.98, -457.24, 66.64), type = "atm", UseMarker = false },
{ coords = vector3(1153.88, -326.54, 69.25), type = "atm", UseMarker = false },
{ coords = vector3(314.19, -278.62, 54.17), type = "atm", UseMarker = false },
{ coords = vector3(-351.53, -49.53, 49.04), type = "atm", UseMarker = false },
{ coords = vector3(129.22, -1292.35, 29.27), type = "atm", UseMarker = false },
{ coords = vector3(287.65, -1282.65, 29.66), type = "atm", UseMarker = false },
{ coords = vector3(289.01, -1256.55, 29.44), type = "atm", UseMarker = false },
{ coords = vector3(295.84, -895.64, 29.22), type = "atm", UseMarker = false },
{ coords = vector3(1686.75, 4815.81, 42.01), type = "atm", UseMarker = false },
{ coords = vector3(-302.41, -829.95, 32.42), type = "atm", UseMarker = false },
{ coords = vector3(2558.05, 389.48, 108.66), type = "atm", UseMarker = false },
{ coords = vector3(-1570.20, -546.65, 34.96), type = "atm", UseMarker = false },
{ coords = vector3(-1430.11, -211.01, 46.50), type = "atm", UseMarker = false },
{ coords = vector3(381.28, 323.25, 103.27), type = "atm", UseMarker = false },
{ coords = vector3(236.46, 217.47, 106.84), type = "atm", UseMarker = false },
{ coords = vector3(265.00, 212.17, 106.78), type = "atm", UseMarker = false },
{ coords = vector3(285.20, 143.57, 104.97), type = "atm", UseMarker = false },
{ coords = vector3(157.77, 233.55, 106.45), type = "atm", UseMarker = false },
{ coords = vector3(1074.29, -775.49, 58.21), type = "atm", UseMarker = false },
{ coords = vector3(24.59, -946.06, 29.36), type = "atm", UseMarker = false },
{ coords = vector3(-254.11, -692.48, 33.62), type = "atm", UseMarker = false },
{ coords = vector3(5.13, -919.95, 29.56), type = "atm", UseMarker = false },
{ coords = vector3(527.26, -160.76, 57.09), type = "atm", UseMarker = false },
{ coords = vector3(-821.62, -1081.88, 11.13), type = "atm", UseMarker = false },
{ coords = vector3(-1315.32, -835.96, 16.96), type = "atm", UseMarker = false },
{ coords = vector3(-660.71, -854.06, 24.48), type = "atm", UseMarker = false },
{ coords = vector3(-1109.73, -1690.81, 4.37), type = "atm", UseMarker = false },
{ coords = vector3(-30.30, -723.76, 44.23), type = "atm", UseMarker = false },
{ coords = vector3(-28.07, -724.61, 44.23), type = "atm", UseMarker = false },
{ coords = vector3(-613.24, -704.84, 31.24), type = "atm", UseMarker = false },
{ coords = vector3(-618.84, -707.90, 30.50), type = "atm", UseMarker = false },
{ coords = vector3(-1285.60, -224.28, 42.45), type = "atm", UseMarker = false },
{ coords = vector3(-1091.50, 2708.66, 18.95), type = "atm", UseMarker = false },
{ coords = vector3(1171.98, 2702.55, 38.18), type = "atm", UseMarker = false },
{ coords = vector3(2683.09, 3286.53, 55.24), type = "atm", UseMarker = false }
}
function Notify(msg, type)
TriggerEvent('esx:showNotification', msg)
--TriggerEvent('rs_notify', 'Bank - System', msg, type, 5000)
end
function ShowHelpNotify(msg, E)
ESX.ShowHelpNotification(msg, E)
-- exports["rs_hud"]:HelpNotify(msg, E)
end
2. Configure sv_config.lua
sv_config.lua
In this section, you will configure the server-side configuration file sv_config.lua
. Follow the instructions below to set it up according to your framework (ESX or QBcore)
CFG = {}
CFG.Webhooks = {
Color = "16777215",
Author = "ResmonStudio",
AuthorURL = "https://i.ibb.co/PZDN7K4/logo.png",
ThumbURL = "https://i.ibb.co/PZDN7K4/logo.png",
Username = "RS | Logs",
Webhooks = {
deposit = {'PUT_YOUR_WEBHOOK'},
withdraw = {'PUT_YOUR_WEBHOOK'},
transfer = {'PUT_YOUR_WEBHOOK'},
}
}
3. Select Languages in sh_languages.lua
sh_languages.lua
In the sh_languages.lua
file, you can manage all available language options. To set your preferred language and its corresponding translations, navigate to cl_config.lua
and specify your desired locale. This allows you to customize the different languages.
Config.Languages = {
['en'] = { -- English
['InvalidAmount'] = "Invalid amount or no amount specified",
['InsufficientFunds'] = "Invalid amount or insufficient funds",
['WithdrawalSuccess'] = "Withdrawal of $%s successful",
['DepositSuccess'] = "Deposit of $%s successful",
['TransferSuccessSender'] = "Transfer: $%s successfully sent to %s",
['TransferSuccessReceiver'] = "Transfer: $%s received from %s",
['OfflineTransferNotPossible'] = "Offline transfer not possible!",
['IbanNotFound'] = "This IBAN is not recognized",
['HelpNotificationText'] = "Press ~INPUT_CONTEXT~ to open the Bank",
},
['de'] = { -- German
['InvalidAmount'] = "Ungültiger Betrag oder kein Betrag angegeben",
['InsufficientFunds'] = "Ungültiger Betrag oder unzureichende Mittel",
['WithdrawalSuccess'] = "Abhebung von $%s erfolgreich",
['DepositSuccess'] = "Einzahlung von $%s erfolgreich",
['TransferSuccessSender'] = "Überweisung: $%s erfolgreich an %s gesendet",
['TransferSuccessReceiver'] = "Überweisung: $%s von %s erhalten",
['OfflineTransferNotPossible'] = "Offline-Überweisung nicht möglich!",
['IbanNotFound'] = "Diese IBAN wird nicht erkannt",
['HelpNotificationText'] = "Drücken Sie ~INPUT_CONTEXT~, um die Bank zu öffnen",
},
['pl'] = { -- Polish
['InvalidAmount'] = "Nieprawidłowa kwota lub brak podanej kwoty",
['InsufficientFunds'] = "Nieprawidłowa kwota lub niewystarczające środki",
['WithdrawalSuccess'] = "Wypłata $%s zakończona sukcesem",
['DepositSuccess'] = "Wpłata $%s zakończona sukcesem",
['TransferSuccessSender'] = "Przelew: $%s pomyślnie wysłano do %s",
['TransferSuccessReceiver'] = "Przelew: $%s otrzymano od %s",
['OfflineTransferNotPossible'] = "Przelew offline jest niemożliwy!",
['IbanNotFound'] = "Ten IBAN nie jest rozpoznawany",
['HelpNotificationText'] = "Naciśnij ~INPUT_CONTEXT~, aby otworzyć Bank",
},
['es'] = { -- Spanish
['InvalidAmount'] = "Cantidad inválida o no especificada",
['InsufficientFunds'] = "Cantidad inválida o fondos insuficientes",
['WithdrawalSuccess'] = "Retiro de $%s exitoso",
['DepositSuccess'] = "Depósito de $%s exitoso",
['TransferSuccessSender'] = "Transferencia: $%s enviada exitosamente a %s",
['TransferSuccessReceiver'] = "Transferencia: $%s recibida de %s",
['OfflineTransferNotPossible'] = "¡Transferencia fuera de línea no es posible!",
['IbanNotFound'] = "Este IBAN no es reconocido",
['HelpNotificationText'] = "Presiona ~INPUT_CONTEXT~ para abrir el Banco",
},
['it'] = { -- Italian
['InvalidAmount'] = "Importo non valido o importo non specificato",
['InsufficientFunds'] = "Importo non valido o fondi insufficienti",
['WithdrawalSuccess'] = "Prelievo di $%s riuscito",
['DepositSuccess'] = "Deposito di $%s riuscito",
['TransferSuccessSender'] = "Trasferimento: $%s inviato con successo a %s",
['TransferSuccessReceiver'] = "Trasferimento: $%s ricevuto da %s",
['OfflineTransferNotPossible'] = "Trasferimento offline non possibile!",
['IbanNotFound'] = "Questo IBAN non è riconosciuto",
['HelpNotificationText'] = "Premi ~INPUT_CONTEXT~ per aprire la Banca",
},
['cs'] = { -- Czech
['InvalidAmount'] = "Neplatná částka nebo není uvedena žádná částka",
['InsufficientFunds'] = "Neplatná částka nebo nedostatek prostředků",
['WithdrawalSuccess'] = "Výběr $%s byl úspěšný",
['DepositSuccess'] = "Vklad $%s byl úspěšný",
['TransferSuccessSender'] = "Převod: $%s úspěšně odeslán na %s",
['TransferSuccessReceiver'] = "Převod: $%s přijat od %s",
['OfflineTransferNotPossible'] = "Offline převod není možný!",
['IbanNotFound'] = "Tento IBAN není rozpoznán",
['HelpNotificationText'] = "Stiskněte ~INPUT_CONTEXT~ pro otevření banky",
},
['tr'] = { -- Turkish
['InvalidAmount'] = "Geçersiz tutar veya belirtilmemiş tutar",
['InsufficientFunds'] = "Geçersiz tutar veya yetersiz bakiye",
['WithdrawalSuccess'] = "$%s çekme işlemi başarılı",
['DepositSuccess'] = "$%s yatırma işlemi başarılı",
['TransferSuccessSender'] = "Transfer: $%s başarıyla %s'ye gönderildi",
['TransferSuccessReceiver'] = "Transfer: $%s başarıyla %s'den alındı",
['OfflineTransferNotPossible'] = "Çevrimdışı transfer mümkün değil!",
['IbanNotFound'] = "Bu IBAN tanınmıyor",
['HelpNotificationText'] = "Bankayı açmak için ~INPUT_CONTEXT~ tuşuna basın",
},
['pt'] = { -- Portuguese
['InvalidAmount'] = "Quantia inválida ou quantia não especificada",
['InsufficientFunds'] = "Quantia inválida ou fundos insuficientes",
['WithdrawalSuccess'] = "Retirada de $%s bem-sucedida",
['DepositSuccess'] = "Depósito de $%s bem-sucedido",
['TransferSuccessSender'] = "Transferência: $%s enviada com sucesso para %s",
['TransferSuccessReceiver'] = "Transferência: $%s recebida de %s",
['OfflineTransferNotPossible'] = "Transferência offline não possível!",
['IbanNotFound'] = "Este IBAN não é reconhecido",
['HelpNotificationText'] = "Pressione ~INPUT_CONTEXT~ para abrir o Banco",
},
}
Last updated