I welcome you CFX community!
Today I present to you the bank system! This system provides accessibility for frameworks (ESX, QBCore, Standalone), huge editing capabilities using a configuration file, and a unique design. Iβm sure you and your players will love it!
This system includes a nice user interface, a convenient configuration file, the ability to configure the entire resource and clear functionality.
Demonstration of the system:
π₯ Preview Video
Example of a configuration file:
Configuration files
--/*
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββ¦ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββ¦ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ*/
Config = {}
--Debug mode
Config.debug = false
--If ESX = false and QBCore = false, then Standalone will turn on
--Are you using ESX?
Config.UseESX = true
--Enable this if ESX throws an error: Used the getSharedObject Event, this event no longer exists!
Config.UseESX_lib = true
--Are you using QBCore?
Config.UseQBCore = false
--Interaction Button
Config.BankOpenButton = 38
Config.useCommandNameOpenMenu = false
Config.commandNameOpenMenu = 'bank'
--Date and time format
Config.DateFormat = "%m.%d.%Y"
Config.TimeFormat = "%H:%M"
--The ability to embed your own exports to hide the hud
Config.useHudOffOnEvents = true
function hudOnEvent()
DisplayRadar(true)
--exports.Burevestnik_hud:Burevestnik_hud_on() -- Uncomment if you use Burevestnik_HUD system (https://burevestnik.tebex.io/package/5371893)
end
function hudOffEvent()
DisplayRadar(false)
--exports.Burevestnik_hud:Burevestnik_hud_off() -- Uncomment if you use Burevestnik_HUD system (https://burevestnik.tebex.io/package/5371893)
end
--OX target settings (Only if you use it)
Config.UseOxTarget = false
Config.OxTargetText = "Open ATM"
Config.OxTargetIcon = "fa-solid fa-money-bills"
Config.UseOxTargetDistance = 2.0
--Interaction distance
Config.atmInteractionDistance = 2.0
--ATM Models
Config.modelsATM = {
"prop_atm_01",
"prop_atm_02",
"prop_atm_03",
"prop_fleeca_atm"
}
-- If true, the custom interaction menus are activated. Pay attention to the customInteractionButtonOpen and customInteractionButtonClose functions.
Config.UseCustomInteractionButton = true
Config.BurevestnikInteractionButton = "E"
Config.BurevestnikInteractionButtonText = "Press to interact"
-- The function of opening a custom interaction menu.
function customInteractionButtonOpen()
exports.Burevestnik_interaction_button:bur_nui_InteractionButton_open(Config.BurevestnikInteractionButton, Config.BurevestnikInteractionButtonText) -- Uncomment if you use Burevestnik Interaction Button (https://forum.cfx.re/t/free-standalone-interaction-button/4860169)
end
-- The function of closing the custom interaction menu.
function customInteractionButtonClose()
exports.Burevestnik_interaction_button:bur_nui_InteractionButton_close() -- Uncomment if you use Burevestnik Interaction Button (https://forum.cfx.re/t/free-standalone-interaction-button/4860169)
end
DisplayHelpText = function(str)
SetTextComponentFormat("STRING")
AddTextComponentString(str)
DisplayHelpTextFromStringLabel(0, 0, false, -1)
end
Config.Banks = {
{
interactionDistance = 2.0, --Distance for interaction with the store
useBlip = true, --The ability to use blip on the map for this ped.
blipID = 108, --Blip ID.
blipScale = 0.7, --Blip scale.
blipColor = 2, --Blip color.
blipText = "Bank", --Blip text.
UseMarkers = false, --Do you want to use a marker ?
MarkerType = 1, --Marker type
MarkerSizeX = 0.5, --Marker size X
MarkerSizeY = 0.5, --Marker size Y
MarkerSizeZ = 0.5, --Marker size Z
MarkerColourR = 122, --Marker colour R
MarkerColourG = 195, --Marker colour G
MarkerColourB = 254, --Marker colour B
MarkerColourA = 20, --Marker colour A
locations = { --Store locations
vector3(150.266, -1040.203, 29.374),
vector3(-1212.980, -330.841, 37.787),
vector3(-2962.582, 482.627, 15.703),
vector3(-112.202, 6469.295, 31.626),
vector3(314.187, -278.621, 54.170),
vector3(-351.534, -49.529, 49.042),
vector3(241.727, 220.706, 106.286),
vector3(1175.064, 2706.643, 38.094),
},
},
}
Config.Translation = {
['menu'] = 'Press ~INPUT_CONTEXT~ to ~g~interact',
['debugText1'] = 'The players bank account has been successfully updated.',
['debugText2'] = 'Error: Player with ID ',
['debugText3'] = ' not found.',
['debugText4'] = 'Player identifier with ID ',
['debugText5'] = 'Error: Player with ID ',
['translationText1'] = 'BUR',
['translationText2'] = 'THERE WERE NO OPERATIONS',
['translationText3'] = 'Bank account: ',
['translationText4'] = 'Cash: ',
['translationText5'] = 'Deposit',
['translationText6'] = 'Withdrawal',
['translationText7'] = 'Transfer',
['translationText8'] = 'Exit',
['translationText9'] = 'ERROR',
['translationText10'] = 'Operation ',
['translationText11'] = 'Close',
['translationText12'] = 'account deposit',
['translationText13'] = 'Enter the amount',
['translationText14'] = 'Send',
['translationText15'] = 'Account deposit',
['translationText16'] = 'Send',
['translationText17'] = 'Account withdrawal',
['translationText18'] = 'Transfer money (Enter only the numbers)',
['translationText19'] = 'Enter the players bank ID',
['translationText20'] = 'Send',
['translationText21'] = 'You havent entered anything',
['translationText22'] = '$',
['translationText23'] = 'Account deposit',
['translationText24'] = 'Account withdrawal',
['translationText25'] = 'Account transfer',
['translationText26'] = 'Bank depost',
['translationText27'] = 'Bank withdrawal',
['translationText28'] = 'Bank transfer',
['translationText29'] = 'The amount must be from 1 to 999999',
['translationText30'] = 'Withdraw',
}
--Exports
--exports.Burevestnik_bank:bur_open_bank()
--exports.Burevestnik_bank:bur_close_bank()
Optimization (The script consumes):
0.00 ms in a quiet state.
0.01 ms in an active state.
What does this system include:
- This system works on all versions of ESX, QBCore, as well as STANDALONE!
- Beautiful user interface!
- Support of our
Dialogue system!
- Support for our
free Interaction Button resource!
- Support for the
Ox Target!
- The ability to transfer money to offline players!
- The ability to interact with all ATMs on the map!
- The ability to enable blips on the map!
- The ability to enable markers!
- The ability to install new places of interaction!
- Incredibly customizable configuration file!
- You can completely change the user interface at will!
- Exports are available!
- Of course support, Iβm ready to help you!
TOP SALES
You may also be interested in my other resources:
Code accessible | Open source: Yes \ Escrow: No - Available only: config, ui |
Subscription based | No |
Lines (approximately) | ~1700 |
Requirements | Standalone/ESX/QBCore |
Support | Yes |