Configuration
All Wasabi Scripts contain various editable and unobscured files containing, exports, client and server functions, configuration methods and more.
View Configuration
-----------------For support, scripts, and more----------------
--------------- https://discord.gg/wasabiscripts -------------
---------------------------------------------------------------
Config, Strings = {}, {}
Config.Language = "en" -- Language to use for the script
Config.Debug = false -- If you want to enable the debug mode
Config.EnableWebhooks = true -- If you want to enable the webhooks
Config.AutomaticAddDatabaseTables = true -- If you want to add the database tables automatically to your database, if you already have the tables set it to false
Config.MaxSavedTransactions = 50 -- Max transactions that will be saved on the database per player to avoid lag
Config.wasabinotify = false -- If you want to use wasabi-notify (changeable in cl_utils.lua)
Config.UseTargetSystem = false -- If you want to use the target system
Config.EnableCardAnimations = true -- If you want to use animations
Config.CardsAnimationType = 'vertical' -- Animation type for the cards | vertical / horizontal
Config.TargetSystem = 'ox-target' -- Target system | ox-target / qb-target
Config.TargetDistance = 5.0 -- Distance to interact with the target
Config.MarkerSettings = { MarkerID = 2, Color = {red = 41, green = 177, blue = 129, alpha = 222} } -- Marker settings if you are using the target system
Config.InventorySystem = 'ox-inventory' -- Inventory system | ox-inventory / qs-inventory / qb-inventory
Config.AutomaticCheckSociety = false -- If you want to use the automatic society table verification you don't need to change the tables and columns below
Config.SocietyTable = 'addon_account_data' -- "bank_accounts" or "management_funds" or "addon_account_data"
Config.JobNameColumn = 'account_name' -- "account_name" or "job_name" or "account_name"
Config.AmountColumn = 'money' -- "account_balance" or "amount" or "money"
Config.Currency = '€' -- Currency symbol
Config.CurrencyOnRight = true -- If you want the currency symbol on the right
Config.MaxCards = 3 -- Max cards that can be created per player
Config.MaxPinAttempts = 3 -- Max pin attempts
Config.CardPrice = 1000 -- Price to create a card
Config.PinChangePrice = 100 -- Price to change the PIN code
Config.IBANChangePrice = 250 -- Price to change the account IBAN
Config.AccountIbanPrefix = 'WSB-' -- Prefix of the account IBAN
Config.ResetCardDailyLimit = 24 -- Hours to reset the daily limit of the card in real time
Config.CardItem = 'bankcard' -- Card item name
Config.CardExpireMonths = 2 -- Card expiration in months
Config.InterestRate = 2 -- Interest rate % ( if the player has 100,000 in the savings account he will get 10,500 every hour defined below - 100,000 * 10.5 / 100 = 10,500 )
Config.InterestRatePeriod = 24 -- Interest rate period in hours
Config.MaxMoneyOnSavingsAccount = 100000 -- Max money that can be on the savings account
Config.MaxSharedAccounts = 3 -- Max shared accounts that can be created per player
Config.BankWorkingHours = {
disableBankAtNight = true, -- If you want to disable the bank at night
openHour = 6, -- Bank open hour
closeHour = 22, -- Bank close hour
}
Config.Loans = {
maxCreditScore = 1000,
paymentInterval = 1, -- Payment interval in hours
paymentOnlyWhenOffline = true, -- If you want to pay the loan only when the player is online or if you want the player to pay for the time he was offline
amountPercentage = 0.1, -- The percentage needed in order to request a loan ( 10% of the total amount, example: 10,000 * 0.1 = 1,000 )
creditScoreIncrease = 1, -- Credit score increase after each payment
creditScoreDecrease = 5, -- Credit score decrease after failed payment
creditScoreDecreaseAfterCancelLoan = 100, -- Credit score decrease after canceling the loan
creditScoreIncreaseAfterFinishingLoan = 50, -- Credit score increase after paying the whole loan
creditScoreIncreaseAfterFinishingLoanEarly = 75, -- Credit score increase after paying the whole loan early
creditScores = {
[0] = { value = 0, label = "Very Poor" },
[1] = { value = 150, label = "Poor" },
[3] = { value = 250, label = "Normal" },
[4] = { value = 500, label = "Good" },
[5] = { value = 750, label = "Excelent" },
[6] = { value = 1000, label = "Perfect" },
},
loans = {
[1] = { totalamount = 5000, days = 30, interest = 5, minimumcreditscore = 0, label = "Standard Loan", icon = "fa-solid fa-coins" },
[2] = { totalamount = 10000, days = 45, interest = 10, minimumcreditscore = 400, label = "Premium Loan", icon = "fa-solid fa-sun" },
[3] = { totalamount = 20000, days = 60, interest = 15, minimumcreditscore = 600, label = "Diamond Loan", icon = "fa-solid fa-gem" },
[4] = { totalamount = 50000, days = 80, interest = 20, minimumcreditscore = 750, label = "Platinum Loan", icon = "fa-solid fa-flask" },
},
}
Config.BankManager = {
commandBankMenu = 'bankmenu', -- Command to open the bank menu
jobnames = { -- Jobs that can access the bank manager menu
'banker',
'police'
}
}
Config.ATMModels = { `prop_fleeca_atm`, `prop_atm_01`, `prop_atm_02`, `prop_atm_03` } -- https://gta-objects.xyz/objects
Config.PedModels = { `ig_bankman`, `u_m_m_bankman` } -- https://docs.fivem.net/docs/game-references/ped-models/
Config.CardsTypeAndLimit = { -- Change here the cards limit, don't change the type since it's only backend
['default'] = { limit = 5000, label = "Default Card" },
['gold'] = { limit = 10000, label = "Gold Card" },
['express'] = { limit = 50000, label = "Express Card" },
}
Config.AllowedSocietiesAndRanks = { -- Societies that can access the bank where the first argument is the society name and the second is the ranks that can access the bank
['police'] = {
['grades'] = {3, 4},
},
['ambulance'] = {
['grades'] = {3, 4},
},
['mechanic'] = {
['grades'] = {3, 4},
},
['taxi'] = {
['grades'] = {3, 4},
},
['banker'] = {
['grades'] = {3, 4},
},
}
Config.Banks = {
["Pacific Bank"] = {
{blipID = 431, blipColor = 2, coords = vector4(247.32, 222.77, 106.29, 340.95), targetCoords = vector4(247.97, 224.72, 106.29, 162.74)}
},
["Paleto Bank"] = {
{blipID = 431, blipColor = 5, coords = vector4(-112.79, 6469.31, 31.63, 313.04), targetCoords = vector4(-111.11, 6470.14, 31.63, 140.34)}
},
["Fleeca Bank"] = {
{blipID = 431, blipColor = 5, coords = vector4(149.33, -1040.14, 29.37, 162.47), targetCoords = vector4(149.43, -1042.33, 29.37, 341.65)},
{blipID = 431, blipColor = 5, coords = vector4(-1213.53, -330.5, 37.79, 201.61), targetCoords = vector4(-1211.93, -331.92, 37.78, 28.03)},
{blipID = 431, blipColor = 5, coords = vector4(-2962.89, 482.2, 15.70, 265.08), targetCoords = vector4(-2961.1, 482.95, 15.7, 89.7)},
{blipID = 431, blipColor = 5, coords = vector4(313.78, -278.33, 54.17, 158.15), targetCoords = vector4(313.82, -280.55, 54.16, 350.46)},
{blipID = 431, blipColor = 5, coords = vector4(-351.60, -49.19, 49.04, 160.60), targetCoords = vector4(-351.39, -51.33, 49.04, 341.78)},
{blipID = 431, blipColor = 5, coords = vector4(1175.79, 2706.46, 38.09, 1.72), targetCoords = vector4(1174.94, 2708.28, 38.09, 187.29)},
},
}
function strings(language)
if Strings[language] then
return Strings[language]
else
print(string.format("Locale '%s' doesn't exist on '%s.lua' file!", language, Config.Language))
end
end
Last updated