> For the complete documentation index, see [llms.txt](https://s1h.gitbook.io/info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://s1h.gitbook.io/info/resources/s1h_vehicleshop/config-files.md).

# Config Files

```lua

Bridge = exports["s1h_bridge"]:getBridge()
Function = exports["s1h_bridge"]:getFunction()

S1H = S1H or {}
S1H.Locales = S1H.Locales or {}

Function.RegisterConfig({
    Target = "s1h_uipack", --"qb-target", "ox_target", "s1h_uipack",
    MysqlStructure = {
        ESX = {
            vehiclesTable = "owned_vehicles",
            ownerColumn = "owner",
            plateColumn = "plate",
            vehicleColumn = "vehicle",

            usersTable = "users",
            identifierColumn = "identifier",
            jobColumn = "job",
            jobGradeColumn = "job_grade"
        },
        QB = {
            vehiclesTable = "player_vehicles",
            ownerColumn = "citizenid",
            plateColumn = "plate",
            vehicleColumn = "vehicle",

            usersTable = "players",
            identifierColumn = "citizenid",
            jobColumn = "job"
        },
        CUSTOM = {
            vehiclesTable = "custom_shop_veh",
            ownerColumn = "identifier",
            plateColumn = "plate",
            vehicleColumn = "vehicle"
        },
        S1H = {
            vehiclesTable = "owned_vehicles",
            ownerColumn = "owner",
            plateColumn = "plate",
            vehicleColumn = "vehicle",

            usersTable = "users",
            identifierColumn = "identifier",
            jobColumn = "job",
            jobGradeColumn = "job_grade"
        }
    }
}, "s1h_vehicleshop") 

S1H.DebugMode = true
S1H.DevMenuPermission = {'admin', 'god'} -- Framework Perms | ESX: 'user', 'mod', 'admin', 'superadmin' | QBCore: 'user', 'mod', 'admin', 'god'
S1H.StorePercentage = {
    min = 2,
    max = 888888
}
S1H.BlipScale = 0.7

S1H.Language = 'en' --'en', 'de', 'fr', 'es', 'pt-br', 'pl', 'nl', 'tr'

S1H.Keys = {
    OpenShowroom = 'G', -- for opening the showroom menu
    OpenBossMenu = 'E', -- for opening the boss menu
    OpenReturnMenu = 'E', -- for opening the return menu
    OpenRentalMenu = 'E' -- for opening the rental menu
}
S1H.GiveKeys = {
    ResourceName = "s1h_hotwire",
    TestDrive = function(vehicleEntity)
        -- Code that will run during a test drive
        -- Exemplar QB-Core:
        exports[S1H.GiveKeys.ResourceName]:SetNonRemoveableIgnition(vehicleEntity, true, true)
        -- TriggerEvent("vehiclekeys:client:SetOwner", plate)
    end,

    Purchase = function(src, plate)
        -- Export to run when the vehicle is purchased
        -- Exemplar QB-Core:
        exports[S1H.GiveKeys.ResourceName]:GiveKeyPlate(src, plate, true)
        -- TriggerEvent("vehiclekeys:client:SetOwner", plate)
    end
}

S1H.Hud = {
    Hide = function()
        -- Uncomment and edit to hide your HUD
        print('Hiding HUD')
        -- exports["qb-hud"]:Hide()
        -- TriggerEvent("hud:client:hide")
    end,
    Show = function()
        -- Uncomment and edit to show your HUD
        print('Showing HUD')
        -- exports["qb-hud"]:Show()
        -- TriggerEvent("hud:client:show")
    end
}

S1H.PlateConfig = {
    Format = "LLLNNN",     
    Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
    Numbers = "0123456789",
    Prefix = "BN"  
}

S1H.refundToBusinessAccount = true
S1H.TestDriveFeeToBusinessAccount = true   -- true: fee goes to store safe, false: fee is just removed from player

S1H.TestDriveBucketIsolation = true
-- Test Drive UI Position
-- Options: 'right-center', 'left-center', 'top-center', 'bottom-center'
S1H.TestDriveUIPosition = 'bottom-center'

S1H.RentalCheckInterval = 120 -- Rate control interval (seconds). 3600 = 1 hour, 60 = 1 minute

S1H.ShowroomVehicleModels = {
    { name = "bf400", value = "BF400" },
    { name = "adder", value = "Adder" },
    { name = "zentorno", value = "Zentorno" },
    { name = "duster", value = "Duster" },
    { name = "sultan", value = "Sultan RS" },
    { name = "elegy", value = "Elegy RH8" },
    { name = "jester", value = "Jester" },
    { name = "comet", value = "Comet" },
    { name = "banshee", value = "Banshee" },
    { name = "feltzer2", value = "Feltzer" },
    { name = "massacro", value = "Massacro" },
    { name = "ninef", value = "Ninef" },
    { name = "rapidgt", value = "Rapid GT" },
    { name = "schafter3", value = "Schafter V12" },
    { name = "surano", value = "Surano" },
    { name = "exemplar", value = "Exemplar" },
    { name = "oracle2", value = "Oracle XS" },
    { name = "windsor", value = "Windsor" },
    { name = "alpha", value = "Alpha" },
    { name = "fusilade", value = "Fusilade" },
    { name = "penumbra", value = "Penumbra" },
}
-- Log limit: 0 = all, other values = show that many records
S1H.BossMenuLogLimit = 0

S1H.VehicleTypeList = {
    { name = "Sports Cars", value = "sports" },
    { name = "Super Cars", value = "super" },
    { name = "Hyper Cars", value = "hyper" },
    { name = "Luxury Cars", value = "luxury" },
    { name = "Sedan", value = "sedan" },
    { name = "Compact Cars", value = "compact" },
    { name = "Coupe", value = "coupe" },
    { name = "Hatchback", value = "hatchback" },
    { name = "SUV", value = "suv" },
    { name = "Crossover", value = "crossover" },
    { name = "Offroad", value = "offroad" },
    { name = "Pickup Trucks", value = "pickup" },
    { name = "Trucks", value = "truck" },
    { name = "Vans", value = "van" },
    { name = "Minivans", value = "minivan" },
    { name = "Motorcycles", value = "motorcycle" },
    { name = "Sport Bikes", value = "sportbike" },
    { name = "Cruiser Bikes", value = "cruiser" },
    { name = "Electric Cars", value = "electric" },
    { name = "Hybrid Cars", value = "hybrid" },
    { name = "Classic Cars", value = "classic" },
    { name = "Muscle Cars", value = "muscle" },
    { name = "Race Cars", value = "race" },
    { name = "Drift Cars", value = "drift" },
    { name = "Track Cars", value = "track" },
    { name = "Tuner Cars", value = "tuner" },
    { name = "Luxury SUVs", value = "luxurysuv" },
    { name = "Armored Vehicles", value = "armored" },
    { name = "Police Vehicles", value = "police" },
    { name = "Emergency Vehicles", value = "emergency" },
    { name = "Taxi Vehicles", value = "taxi" },
    { name = "Service Vehicles", value = "service" },
    { name = "Utility Vehicles", value = "utility" },
    { name = "Industrial Vehicles", value = "industrial" },
    { name = "Construction Vehicles", value = "construction" },
    { name = "Military Vehicles", value = "military" },
    { name = "ATV / Quads", value = "atv" },
    { name = "Golf Carts", value = "golfcart" },
    { name = "Boats", value = "boat" },
    { name = "Helicopters", value = "helicopter" }
}

S1H.VehicleClassTierList = {
    { name = "S", value = "S" },
    { name = "A", value = "A" },
    { name = "D", value = "D" },
    { name = "C", value = "C" },
    { name = "F", value = "F" },
    { name = "G", value = "G" }
}

S1H.ShopBlipTypeList = {
    { name = "Type No: 1", value = 90 },
    { name = "Type No: 2", value = 61 },
    { name = "Type No: 3", value = 884 },    
    { name = "Type No: 4", value = 843 },    
    { name = "Type No: 5", value = 844 },    
    { name = "Type No: 6", value = 846 },    
    { name = "Type No: 7", value = 825 },    
    { name = "Type No: 8", value = 824 },    
    { name = "Type No: 9", value = 824 },    
    { name = "Type No: 10", value = 823 },    
    { name = "Type No: 11", value = 821 },    
    { name = "Type No: 12", value = 820 },    
    { name = "Type No: 13", value = 818 },    
    { name = "Type No: 14", value = 812 },    
    { name = "Type No: 15", value = 811 },    
    { name = "Type No: 16", value = 811 },    
    { name = "Type No: 17", value = 810 },    
    { name = "Type No: 18", value = 800 },    
    { name = "Type No: 19", value = 799 },    
    { name = "Type No: 20", value = 782 },    
    { name = "Type No: 21", value = 763 },    
    { name = "Type No: 22", value = 763 },    
    { name = "Type No: 23", value = 757 },    
    { name = "Type No: 24", value = 756 },    
    { name = "Type No: 25", value = 755 },    
    { name = "Type No: 26", value = 753 },    
    { name = "Type No: 27", value = 751 },    
    { name = "Type No: 28", value = 750 },    
    { name = "Type No: 29", value = 749 },    
    { name = "Type No: 30", value = 747 },    
    { name = "Type No: 31", value = 746 },    
    { name = "Type No: 32", value = 745 },    
    { name = "Type No: 33", value = 737 },    
    { name = "Type No: 34", value = 736 },    
    { name = "Type No: 35", value = 735 },    
    { name = "Type No: 36", value = 734 },    
    { name = "Type No: 37", value = 724 },    
    { name = "Type No: 38", value = 726 },    
    { name = "Type No: 39", value = 661 },    
    { name = "Type No: 40", value = 674 },    
    { name = "Type No: 41", value = 640 },    
    { name = "Type No: 42", value = 638 },    
    { name = "Type No: 43", value = 617 },    
    { name = "Type No: 44", value = 616 },    
    { name = "Type No: 45", value = 602 },    
    { name = "Type No: 46", value = 522 },    
    { name = "Type No: 47", value = 530 },    
    { name = "Type No: 48", value = 523 },    
    { name = "Type No: 49", value = 513 },    
    { name = "Type No: 50", value = 512 },    
    { name = "Type No: 51", value = 500 },    
    { name = "Type No: 52", value = 483 },    
    { name = "Type No: 53", value = 471 },    
    { name = "Type No: 54", value = 455 },    
    { name = "Type No: 55", value = 404 },    
    { name = "Type No: 56", value = 304 },    
    { name = "Type No: 57", value = 272 },    
    { name = "Type No: 58", value = 198 },    
    { name = "Type No: 59", value = 162 },    
    { name = "Type No: 60", value = 164 },    
    { name = "Type No: 61", value = 67 },    
    { name = "Type No: 62", value = 64 },    
    { name = "Type No: 63", value = 36 },    
    { name = "Type No: 64", value = 85 },    
    { name = "Type No: 65", value = 410 }   
}

S1H.ShopBlipColorList = {
    { name = "Color No: 1", value = 47 },
    { name = "Color No: 2", value = 77 },
    { name = "Color No: 3", value = 18 },
    { name = "Color No: 4", value = 14 },
    { name = "Color No: 5", value = 47 },
    { name = "Color No: 6", value = 76 },
    { name = "Color No: 7", value = 34 },
    { name = "Color No: 8", value = 15 },
    { name = "Color No: 9", value = 83 },
    { name = "Color No: 10", value = 7 },
    { name = "Color No: 11", value = 9 },
    { name = "Color No: 12", value = 40 },
    { name = "Color No: 13", value = 31 },
    { name = "Color No: 14", value = 51 },
    { name = "Color No: 15", value = 58 },
    { name = "Color No: 16", value = 50 },
    { name = "Color No: 17", value = 39 },
    { name = "Color No: 18", value = 24 },
    { name = "Color No: 19", value = 12 },
    { name = "Color No: 20", value = 6 },
    { name = "Color No: 21", value = 16 },
    { name = "Color No: 22", value = 32 },
    { name = "Color No: 23", value = 4 },
}


S1H.VehicleColorList = {
    { name = "Metallic Black", hex = "#0d1116" },
    { name = "Metallic Graphite Black", hex = "#1c1d21" },
    { name = "Metallic Black Steel", hex = "#32383d" },
    { name = "Metallic Dark Silver", hex = "#454b4f" },
    { name = "Metallic Silver", hex = "#999da0" },
    { name = "Metallic Blue Silver", hex = "#c2c4c6" },
    { name = "Metallic Steel Gray", hex = "#979a97" },
    { name = "Metallic Shadow Silver", hex = "#637380" },
    { name = "Metallic Stone Silver", hex = "#63625c" },
    { name = "Metallic Midnight Silver", hex = "#3c3f47" },
    { name = "Metallic Gun Metal", hex = "#444e54" },
    { name = "Metallic Anthracite Grey", hex = "#1d2129" },
    { name = "Matte Black", hex = "#13181f" },
    { name = "Matte Gray", hex = "#26282a" },
    { name = "Matte Light Grey", hex = "#515554" },
    { name = "Util Black", hex = "#151921" },
    { name = "Util Black Poly", hex = "#1e2429" },
    { name = "Util Dark Silver", hex = "#333a3c" },
    { name = "Util Silver", hex = "#8c9095" },
    { name = "Util Gun Metal", hex = "#39434d" },
    { name = "Util Shadow Silver", hex = "#506272" },
    { name = "Worn Black", hex = "#1e232f" },
    { name = "Worn Graphite", hex = "#363a3f" },
    { name = "Worn Silver Grey", hex = "#a0a199" },
    { name = "Worn Silver", hex = "#d3d3d3" },
    { name = "Worn Blue Silver", hex = "#b7bfca" },
    { name = "Worn Shadow Silver", hex = "#778794" },
    { name = "Metallic Red", hex = "#c00e1a" },
    { name = "Metallic Torino Red", hex = "#da1918" },
    { name = "Metallic Formula Red", hex = "#b6111b" },
    { name = "Metallic Blaze Red", hex = "#a51e23" },
    { name = "Metallic Graceful Red", hex = "#7b1a22" },
    { name = "Metallic Garnet Red", hex = "#8e1b1f" },
    { name = "Metallic Desert Red", hex = "#6f1818" },
    { name = "Metallic Cabernet Red", hex = "#49111d" },
    { name = "Metallic Candy Red", hex = "#b60f25" },
    { name = "Metallic Sunrise Orange", hex = "#d44a17" },
    { name = "Metallic Classic Gold", hex = "#c2944f" },
    { name = "Metallic Orange", hex = "#f78616" },
    { name = "Matte Red", hex = "#cf1f21" },
    { name = "Matte Dark Red", hex = "#732021" },
    { name = "Matte Orange", hex = "#f27d20" },
    { name = "Matte Yellow", hex = "#ffc91f" },
    { name = "Util Red", hex = "#9c1016" },
    { name = "Util Bright Red", hex = "#de0f18" },
    { name = "Util Garnet Red", hex = "#8f1e17" },
    { name = "Worn Red", hex = "#a94744" },
    { name = "Worn Golden Red", hex = "#b16c51" },
    { name = "Worn Dark Red", hex = "#371c25" },
    { name = "Metallic Dark Green", hex = "#132428" },
    { name = "Metallic Racing Green", hex = "#122e2b" },
    { name = "Metallic Sea Green", hex = "#12383c" },
    { name = "Metallic Olive Green", hex = "#31423f" },
    { name = "Metallic Green", hex = "#155c2d" },
    { name = "Metallic Gasoline Blue Green", hex = "#1b6770" },
    { name = "Matte Lime Green", hex = "#66b81f" },
    { name = "Util Dark Green", hex = "#1f5a65" },
    { name = "Util Green", hex = "#2d7a80" },
    { name = "Worn Dark Green", hex = "#2d423f" },
    { name = "Worn Green", hex = "#45594b" },
    { name = "Worn Sea Wash", hex = "#65867f" },
    { name = "Metallic Midnight Blue", hex = "#222e46" },
    { name = "Metallic Dark Blue", hex = "#233155" },
    { name = "Metallic Saxony Blue", hex = "#304c7e" },
    { name = "Metallic Blue", hex = "#47578f" },
    { name = "Metallic Mariner Blue", hex = "#637ba7" },
    { name = "Metallic Harbor Blue", hex = "#394762" },
    { name = "Metallic Diamond Blue", hex = "#d6e7f1" },
    { name = "Metallic Surf Blue", hex = "#76afbe" },
    { name = "Metallic Nautical Blue", hex = "#345e72" },
    { name = "Metallic Bright Blue", hex = "#0b9cf1" },
    { name = "Metallic Purple Blue", hex = "#2f2d52" },
    { name = "Metallic Spinnaker Blue", hex = "#282c4d" },
    { name = "Metallic Ultra Blue", hex = "#2354a1" },
    { name = "Metallic Bright Blue", hex = "#6ea3c6" },
    { name = "Util Dark Blue", hex = "#204e6a" },
    { name = "Util Midnight Blue", hex = "#1a2b39" },
    { name = "Util Blue", hex = "#2d6b8f" },
    { name = "Util Sea Foam Blue", hex = "#58899e" },
    { name = "Uil Lightning blue", hex = "#61b2e9" },
    { name = "Util Maui Blue Poly", hex = "#4d80b0" },
    { name = "Util Bright Blue", hex = "#3d8bc1" },
    { name = "Matte Dark Blue", hex = "#2d3742" },
    { name = "Matte Blue", hex = "#3e4d5e" },
    { name = "Matte Midnight Blue", hex = "#222e46" },
    { name = "Worn Dark blue", hex = "#2e2f36" },
    { name = "Worn Blue", hex = "#9fa1a7" },
    { name = "Worn Light blue", hex = "#6d8496" },
    { name = "Metallic Taxi Yellow", hex = "#f9c00e" },
    { name = "Metallic Race Yellow", hex = "#f8c100" },
    { name = "Metallic Bronze", hex = "#d18c4c" },
    { name = "Metallic Yellow Bird", hex = "#ffbf1f" },
    { name = "Metallic Lime", hex = "#a5bf39" },
    { name = "Metallic Champagne", hex = "#d1b894" },
    { name = "Metallic Pueblo Beige", hex = "#c39652" },
    { name = "Metallic Dark Ivory", hex = "#986e48" },
    { name = "Metallic Choco Brown", hex = "#6d2416" },
    { name = "Metallic Golden Brown", hex = "#7e674c" },
    { name = "Metallic Light Brown", hex = "#b38a6f" },
    { name = "Metallic Straw Beige", hex = "#c5a682" },
    { name = "Metallic Moss Brown", hex = "#806641" },
    { name = "Metallic Biston Brown", hex = "#432e23" },
    { name = "Metallic Beechwood", hex = "#836b4c" },
    { name = "Metallic Dark Beechwood", hex = "#4a3728" },
    { name = "Metallic Choco Orange", hex = "#935c48" },
    { name = "Metallic Beach Sand", hex = "#af947c" },
    { name = "Metallic Sun Bleeched Sand", hex = "#d4b68c" },
    { name = "Metallic Cream", hex = "#dcd2b2" },
    { name = "Util Brown", hex = "#5d4e40" },
    { name = "Util Medium Brown", hex = "#816347" },
    { name = "Util Light Brown", hex = "#a78c75" },
    { name = "Metallic White", hex = "#f0f0f0" },
    { name = "Metallic Frost White", hex = "#f7f7f7" },
    { name = "Worn Honey Beige", hex = "#d4ae6d" },
    { name = "Worn Brown", hex = "#8e765d" },
    { name = "Worn Dark Brown", hex = "#4d433c" },
    { name = "Worn straw beige", hex = "#c3b7a3" },
    { name = "Brushed Steel", hex = "#7b7c7d" },
    { name = "Brushed Black steel", hex = "#43484b" },
    { name = "Brushed Aluminium", hex = "#a5a9a7" },
    { name = "Chrome", hex = "#d0d5db" },
    { name = "Worn Off White", hex = "#e6e6e6" },
    { name = "Util Off White", hex = "#e9e9e9" },
    { name = "Worn Orange", hex = "#f2ad2e" },
    { name = "Worn Light Orange", hex = "#f9a825" },
    { name = "Metallic Securicor Green", hex = "#4d6443" },
    { name = "Worn Taxi Yellow", hex = "#f8c000" },
    { name = "Police Car Blue", hex = "#4b6e9f" },
    { name = "Matte Green", hex = "#4d6443" },
    { name = "Matte Brown", hex = "#5c5142" },
    { name = "Worn Orange", hex = "#f2ad2e" },
    { name = "Matte White", hex = "#f0f0f0" },
    { name = "Worn White", hex = "#f0f0f0" },
    { name = "Worn Olive Army Green", hex = "#4d5b3a" },
    { name = "Pure White", hex = "#ffffff" },
    { name = "Hot Pink", hex = "#ff69b4" },
    { name = "Salmon pink", hex = "#ff8b8b" },
    { name = "Metallic Vermillion Pink", hex = "#d44a7f" },
    { name = "Orange", hex = "#ff8c00" },
    { name = "Green", hex = "#00ff00" },
    { name = "Blue", hex = "#0000ff" },
    { name = "Mettalic Black Blue", hex = "#0d0d11" },
    { name = "Metallic Black Purple", hex = "#0d0d11" },
    { name = "Metallic Black Red", hex = "#0d0d11" },
    { name = "Hunter Green", hex = "#2c4e3c" },
    { name = "Metallic Purple", hex = "#6c2eb5" },
    { name = "Metaillic V Dark Blue", hex = "#1c1d21" },
    { name = "BLACK", hex = "#0d0d11" },
    { name = "Matte Purple", hex = "#6c2eb5" },
    { name = "Matte Dark Purple", hex = "#4a235a" },
    { name = "Metallic Lava Red", hex = "#ff0000" },
    { name = "Matte Forest Green", hex = "#2c4e3c" },
    { name = "Matte Olive Drab", hex = "#4d5b3a" },
    { name = "Matte Desert Brown", hex = "#8b7355" },
    { name = "Matte Desert Tan", hex = "#c3b7a3" },
    { name = "Matte Foilage Green", hex = "#4d6443" },
    { name = "Epsilon Blue", hex = "#a7c0d4" },
    { name = "Pure Gold", hex = "#ffd700" },
    { name = "August Blight Purple", hex = "#9166be" },
    { name = "Brushed Gold", hex = "#ffd700" }
}


```
