cfg_main
return {
--[[ General Settings ]]
Framework = "auto", -- Options: "esx", "qbcore", "custom", or "auto" (automatically detects between "esx" and "qbcore")
DebugMode = "dev", -- Debug options: "prod" (minimal logs), "dev" (detailed logs), false (disable logging)
DatabaseSaving = {
Enabled = false, -- Enable saving transactions to the database; otherwise, transactions are cleared on resource restart.
FetchLimit = 50, -- Limit the number of transactions fetched at once to improve performance.
},
QuickActionAmounts = { -- Predefined amounts for quick actions in the UI.
["1"] = 1000,
["2"] = 5000,
["3"] = 10000,
["4"] = "all",
},
--[[ UI Settings ]]
UI = {
Sound = {
enabled = true, -- Enable sound effects for UI interactions.
volume = 0.45, -- Sound volume (0-1).
},
},
--[[ ATM Settings ]]
ATM = {
Enabled = true,
Interaction = {
HelpText = {
Enabled = false, -- If true, displays floating help text near the interaction point.
Distance = 2.5, -- Distance at which help text appears and is interactable.
},
Target = { -- Uses ox_target by default --? (modifiable in config/cfg_functions.lua)
Enabled = true, -- If true, enables the targeting system for ATM interaction.
BoxZoneSize = vec3(4, 4, 4), -- Size of the target zone around the ATM.
DrawSprite = true, -- If true, displays a sprite to indicate the target zone.
Distance = 2.5, -- Interaction distance for the target.
},
},
Animation = {
Enabled = true,
ExitAnimation = true, -- Enables exit animation after using the ATM; otherwise, the animation cancels immediately after closing the UI.
FaceATM = true, -- Automatically aligns the player to face the ATM before starting the animation.
DelayAfterAnim = 1750, -- Delay in milliseconds before the banking UI opens after the animation completes.
},
Models = { -- List of ATM model hashes.
`prop_atm_01`,
`prop_atm_02`,
`prop_atm_03`,
`prop_fleeca_atm`,
},
},
}
Last updated