> For the complete documentation index, see [llms.txt](https://eyestore.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eyestore.gitbook.io/documentation/packages/diving.md).

# DİVİNG

Select a Framework  Currently supported framework systems qb-core, es\_extended, qbx\_core

```
Config.Framework = 'qb-core'
```

Change Locale

You can change the main language of the script. If the language you want is not available, you can create a file with the language you want in this location 'locales/your\_lang.lua' and continue

```
Config.Locale = 'en' -- tr
```

Change Inventory

Set the inventory to be used for attaching items to you and retrieving item images

```
Config.Inventory = 'qb-inventory' -- ox_inventory, codem-inventory, qs-inventory, tgiann-inventory, ps-inventory, lj-inventory
```

Change Item Images Path

Specify the path where the item images are located, usually in inventory, by default it works fine with qb-inventory, ps-inventory, lj-inventory

```
Config.InventoryImage = 'html/images'
```

Set Vehicle Key System

```
Config.VehicleKey = true
Config.VehicleKeySystem = 'qb-vehiclekeys'
Config.RemoveKey = true
Config.RemoveKeySystem = 'qb-vehiclekeys'

Config.GiveVehicleKey = function(plate, vehicle)
    if Config.VehicleKey then
        if Config.VehicleKeySystem == 'qb-vehiclekeys' then
            TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
        elseif Config.VehicleKeySystem == 'qs-vehiclekeys' then
            local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
            exports['qs-vehiclekeys']:GiveKey(plate, model, true)
        elseif Config.VehicleKeySystem == 'wasabi-carlock' then
            exports['wasabi-carlock']:GiveKey(plate)
        elseif Config.VehicleKeySystem == 'cd_garage' then
            TriggerEvent('cd_garage:AddKeys', exports['cd_garage']:GetPlate(vehicle))
        elseif Config.VehicleKeySystem == 'custom' then
            -- Custom Vehicle Key System
        end
    end
end

Config.RemoveVehicleKey = function(plate, vehicle)
    if Config.RemoveKey then
        if Config.RemoveKeySystem == 'qb-vehiclekeys' then
            TriggerServerEvent('qb-vehiclekeys:server:RemoveKeys', plate)
        elseif Config.RemoveKeySystem == 'qs-vehiclekeys' then
            local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
            exports['qs-vehiclekeys']:RemoveKeys(plate, model)
        elseif Config.RemoveKeySystem == 'wasabi-carlock' then
            exports['wasabi-carlock']:RemoveKey(plate)
        elseif Config.RemoveKeySystem == 'cd_garage' then
            TriggerServerEvent('cd_garage:RemovePersistentVehicles', exports['cd_garage']:GetPlate(vehicle))
        elseif Config.RemoveKeySystem == 'custom' then
            -- Custom Remove Key System
        end
    end
end
```

Set Fuel System

```
Config.FuelSystem = 'LegacyFuel'

Config.SetFuel = function(vehicle, fuel)
    if Config.FuelSystem == 'LegacyFuel' then
        exports['LegacyFuel']:SetFuel(vehicle, fuel)
    elseif Config.FuelSystem == 'x-fuel' then
        exports['x-fuel']:SetFuel(vehicle, fuel)
    elseif Config.FuelSystem == 'ps-fuel' then
        exports['ps-fuel']:SetFuel(vehicle, fuel)
    elseif Config.FuelSystem == 'custom' then
        -- Custom Fuel System
    end
end
```

Set Profile Image Type

ui is also used to get users' profiles. if you want to use discord, you need to enter a discord bot token in the 'BotToken' option in the file located in 'config/server.lua'

Example Image is used when the user has no profile or ImageType is false

```
Config.ProfileImageType = 'discord' -- discord, false
Config.ExampleProfileImage = 'https://r2.fivemanage.com/VX91vF0f30DDYFZbWik6j/images/profile.png'
```

Set Money Settings

```
Config.MoneySettings = {
    Item = false,
    Name = 'money',
    Type = 'bank',
}
```

Oxygen Tube Settings

```
Config.OxygenLevel = 200 -- this is oxygen level you can change this number as you like
Config.RemoveDivingGear = false
```

Blip Settings

```
Config.BlipSettings = {
    Main = {
        Active = true,
        Name = 'Diving Job',
        Sprite = 780,
        Color = 3,
        Scale = 0.8,
    },
    JobVehicle = {
        Name = 'Diving Boat',
        Sprite = 410,
        Color = 3,
        Scale = 0.8,
    },
    JobArea = {
        Name = 'Diving Area',
        Sprite = 317,
        Color = 3,
        Scale = 0.55,
    },
    DeliveryBoat = {
        Name = 'Delivery Boat',
        Sprite = 410,
        Color = 3,
        Scale = 0.8,
    }
}
```
