Config Files

Preview Of Config Files

```lua
Config = {
    Debug = false, -- Enable debug mode (needs to be true if you want to restart the script without re-logging)
    Framework = {
        Type = 'qb',
        ResourceName = 'qb-core',
    },
    Events = {
        ["Client:PlayerLoaded"] = "QBCore:Client:OnPlayerLoaded",
        ["Server:PlayerLoaded"] = "QBCore:Server:PlayerLoaded",
        ["Client:OnJobUpdate"] = "QBCore:Client:OnJobUpdate",
        ["Server:OnJobUpdate"] = "QBCore:Server:OnJobUpdate",

    },
    TextUI = "ox",
    Radial = "ox",
    Fuel = "LegacyFuel",  -- The fuel system to use: "LegacyFuel
    VehicleKeys = "qb-vehiclekeys",
    Notifications = "ox", -- The notification system to use: (Currently supporting "qb", "ox", "okok", "qs-interface" or "custom")
    Progressbar = "ox",

    OpeningMethod = "textui", -- The method of opening the garage: "textui" or "radial",
    ZoneMethod = "PolyZone",  -- DON'T CHANGE IT, SOON WILL HAVE A SUPPORT FOR A MARKER

    SaveVehicleMods = true,   -- Save vehicle mods when storing the vehicle (true or false)
    SaveVehicleDamage = true, -- Save vehicle damage when storing the vehicle (true or false)

    UseServerSetter = true,   -- Spawning the vehicle on the server side (Highly recommended), If you encounter any problems with the garages, try setting this to false

    TransferGarages = {
        Enabled = true,    -- The ability to transfer garages
        Price = 5000,      -- The price to transfer the garage
        Currency = "bank", -- The currency to use for the transfer
    },

    Depot = {                 -- "Depot" is making any destroyed or abondanded (entity deleted / despawned, not stored after server restart) vehicles stored in the impound
        Enabled = true,       -- If disabled, any destroyed or abandoned vehicles will be returned to the garages
        RetrievalPrice = 500, -- The price to retrieve the vehicle from the depot (only if Depot is enabled)
        Currency = "bank",    -- The currency to use for the retrieval
        ResetStats = true     -- Reset the vehicle stats when retrieving from the depot (Engine health, Body health and Fuel)
    },

    Blips = {
        Unique = {          -- Creates a blip for each garage (Only for garages)
            Enabled = true, -- Recommended to keep enabled
            Category = {    -- For more info: https://docs.fivem.net/natives/?_0x234CDD44D996FD9A
                Category = 10,
                CategoryHash = "BLIP_PROPCAT",
                CategoryLabel = "Garages",
            },
        },
        Options = {
            Garages = {
                Car = {
                    Sprite = 357,
                    Color = 3,
                    Scale = 0.6,
                    Name = "Garage", -- The name of the blip (Only if Unique is set to false)
                },
                Boat = {
                    Sprite = 356,
                    Color = 3,
                    Scale = 0.6,
                    Name = "Boat Garage", -- The name of the blip (Only if Unique is set to false)
                },
                Planes = {
                    Sprite = 427,
                    Color = 3,
                    Scale = 0.6,
                    Name = "Plane Garage", -- The name of the blip (Only if Unique is set to false)
                },
                Heli = {
                    Sprite = 360,
                    Color = 3,
                    Scale = 0.6,
                    Name = "Helicopter Garage", -- The name of the blip (Only if Unique is set to false)
                },
            },
            Impounds = {
                Sprite = 68,
                Color = 5,
                Scale = 0.7,
                Name = "Impound", -- The name of the blip (Only if Unique is set to false)
            },
        }
    },

    CreationPerms = "god", -- The permission to create garages (if you want to use the garage creator)

    Commands = {
        Creator = { -- The command to open the garage creator menu (it will use the "CreationPerms" permission)
            name = "garagecreator",
            description = "Opens the garage creator menu",
            args = {},
        },
        Impound = {
            enabled = false, -- The command to open the impound menu
            name = "impound",
            description = "Opens the impound menu",
            args = {},
        }
    },

    CustomVehicles = { -- If you have custom vehicles without any name (name shows as null), put it here and the script will automatically giveit the name you choose
        ["vehiclemodel"] = "name"
    }
}

```

Last updated