Configuration

Configure Possible Diving.

Dive Spots

Lua
return {    Debug = true, -- Set to true to enable debug mode    Framework = "qb", -- Framework to use (qb or esx)    InventoryType = "ox_inventory", -- Inventory type to use (qb_inventory or ox_inventory)    Emotes = "rpemotes",  -- or anything else for scully_emotemenu    ValidDivingSuits = {        -- Set your valid clothing component numbers here that allow oxygen when underwater        [8] = {151}, -- Undershirt component example        [11] = {151}, -- Jacket component example    },    OxygenTime = 100.00, -- Time for SetPedMaxTimeUnderwater with diving suit    OxyGenTimeNotificationPostion = "bottom",    MaximumTimeUnderwaterWithoutOxygen = 10.00, -- Maximum time the player can stay underwater without oxygen before health starts depleting    CanMoveWhilstLooting = true, -- Set to true to allow the player to move whilst looting    SkillSystem = {        enabled = true,        type = "qb", -- "qb" for QB-Core metadata, "cw-rep" for cw-rep        skillName = "diving", -- QB-Core metadata skill name or cw-rep skill name        baseOxygenTime = 100.0, -- Base oxygen time (should match OxygenTime above)        oxygenIncreasePerLevel = 2.0, -- Each level increases oxygen time by 2 seconds        maxOxygenIncrease = 100.0, -- Maximum additional oxygen time (200 seconds total at max level)        xpPerLoot = 5, -- XP gained per successful loot        xpPerLevel = 100, -- XP needed per level (only used for QB)        maxLevel = 100, -- Maximum skill level        notifications = {            enabled = true,            levelUp = "Your diving skill has increased to level %d!",            xpGain = "Diving XP: +%d | %d/%d to next level"        }    },        DivingZones = {        {            name = "DivingZone1",            coords = vec3(1795.46, -2950.53, -0.27),            radius = 75.0,            debug = false,            maxCrates = 50,            hideBlip = false,            blip = {                Sprite = 729,                Color = 0,                Display = 4,                Scale = 0.8,                Name = "Diving Zone"            },            radiusBlip = {                Rotation = 0,                Color = 74,                Alpha = 100,                Radius = 75.0 -- Should match your zone radius            },            -- Create crate models and assign loot tables, count in the number of each crate to spawn out of the max crates set            crates = {                { model = `prop_box_ammo03a`, lootTable = "military", count = 5, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Searching Military Crate" },                { model = `prop_box_wood02a`, lootTable = "materials", count = 7, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Collecting Materials" },                { model = `prop_luggage_04a`, lootTable = "luggage", count = 6, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Rummaging Through Luggage" },                { model = `prop_air_cargo_04c`, lootTable = "cargo", count = 5, zoneDebug = false, zoneRadius = 7.0, progressLabel = "Searching Cargo Container" },                { model = `m23_1_prop_m31_crate_medical`, lootTable = "medical", count = 4, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Retrieving Medical Supplies" },                { model = `prop_drug_package`, lootTable = "drug_prep", count = 3, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Examining Drug Package" },                { model = `hei_prop_hei_drug_pack_01b`, lootTable = "drugs", count = 3, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Opening Drug Pack" },                { model = `hei_p_attache_case_shut`, lootTable = "security", count = 3, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Unlocking Security Case" },                { model = `prop_ld_int_safe_01`, lootTable = "safe", chance = 100, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Cracking Safe" }, -- DO NOT CHANGE THIS MODEL IF YOU WANT SAFE SPAWNS Rolls 1 - 100 if greater than chance spawns safe            }        },        {            name = "DivingZone2",            coords = vec3(-2846.89, -396.0, 0.08),            radius = 75.0,            debug = false,            maxCrates = 25,            hideBlip = false,            blip = {                Sprite = 729,                Color = 0,                Display = 4,                Scale = 0.8,                Name = "Diving Zone"            },            radiusBlip = {                Rotation = 0,                Color = 74,                Alpha = 100,                Radius = 75.0 -- Should match your zone radius            },            -- Create crate models and assign loot tables, count in the number of each crate to spawn out of the max crates set            crates = {                { model = `prop_box_ammo03a`, lootTable = "military", count = 5, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Searching Military Crate.." },                { model = `prop_box_wood02a`, lootTable = "materials", count = 5, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Collecting Materials.." },                { model = `prop_luggage_04a`, lootTable = "luggage", count = 5, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Rummaging Through Luggage.." },                { model = `prop_air_cargo_04c`, lootTable = "cargo", count = 5, zoneDebug = false, zoneRadius = 7.0, progressLabel = "Searching Cargo Container.." },                { model = `m23_1_prop_m31_crate_medical`, lootTable = "medical", count = 5, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Retrieving Medical Supplies.." },                { model = `prop_drug_package`, lootTable = "drug_prep", count = 4, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Examining Drug Package.." },                { model = `hei_prop_hei_drug_pack_01b`, lootTable = "drugs", count = 3, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Opening Drug Pack.." },                { model = `hei_p_attache_case_shut`, lootTable = "security", count = 3, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Unlocking Security Case.." },                { model = `prop_ld_int_safe_01`, lootTable = "safe", chance = 100, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Cracking Safe.." }, -- Rolls 1 - 100 if less than chance spawns safe            }        },        {            name = "DivingZone3",            coords = vec3(2678.56, -1404.6, -0.11),            radius = 80.0,            debug = false,            maxCrates = 15,            hideBlip = true, -- Hide blip of premium zones if you want to use them            blip = {                Sprite = 729,                Color = 0,                Display = 4,                Scale = 0.8,                Name = "Diving Zone",            },            radiusBlip = {                Rotation = 0,                Color = 47,                Alpha = 100,                Radius = 75.0 -- Should match your zone radius            },            -- Create crate models and assign loot tables, count in the number of each crate to spawn out of the max crates set            -- These prop models should stay the same in order to require the item to open, the client code checks for both the container models.            crates = {                { model = `prop_container_05mb`, lootTable = "premium_container", count = 2, zoneDebug = false, zoneRadius = 7.0, progressLabel = "Breaking Into Premium Container.." },                { model = `prop_container_ld_pu`, lootTable = "premium_container_2", count = 5, zoneDebug = false, zoneRadius = 7.0, progressLabel = "Opening Locked Container.." },                { model = `prop_ld_int_safe_01`, lootTable = "safe", chance = 10, zoneDebug = false, zoneRadius = 3.0, progressLabel = "Cracking Safe.." }, -- 1 in 10 chance to spawn a safe            }        },        -- Add more diving zones if you want    },    -- Define your loot tables for each of your prop models    LootTables = {        military = {            {item = "phone", chance = 50, min = 1, max = 2},            {item = "WEAPON_PISTOL", chance = 75, min = 1, max = 1},        },        materials = {            {item = "copper", chance = 20, min = 1, max = 3},            {item = "aluminium", chance = 40, min = 1, max = 4},            {item = "iron", chance = 20, min = 1, max = 3},            {item = "steel", chance = 40, min = 1, max = 4},            {item = "metalscrap", chance = 10, min = 1, max = 2},            {item = "plastic", chance = 30, min = 1, max = 3},        },        luggage = {            {item = "phone", chance = 70, min = 1, max = 2},            {item = "radio", chance = 80, min = 1, max = 1},            {item = "whiskey", chance = 80, min = 1, max = 3},            {item = "rolex", chance = 10, min = 1, max = 1},        },        medical = {            {item = "bandage", chance = 70, min = 1, max = 3},            {item = "painkiller", chance = 80, min = 1, max = 4},            {item = "firstaid", chance = 80, min = 1, max = 2},        },        cargo = {            {item = "steel", chance = 70, min = 1, max = 5},            {item = "copper", chance = 80, min = 1, max = 4},        },        drug_prep = {            {item = "weed_ak47", chance = 70, min = 1, max = 3},            {item = "weed_ak47_seed", chance = 80, min = 1, max = 4},        },        drugs = {            {item = "oxy", chance = 50, min = 1, max = 2},            {item = "meth", chance = 10, min = 1, max = 1},            {item = "coke_brick", chance = 10, min = 1, max = 1},        },        security = {            {item = "security_card_01", chance = 5, min = 1, max = 1},            {item = "security_card_02", chance = 10, min = 1, max = 1},            {item = "thermite", chance = 5, min = 1, max = 1},            {item = "cryptostick", chance = 5, min = 1, max = 1},        },        safe = {            {item = "rolex", chance = 70, min = 1, max = 2},            {item = "diamond", chance = 80, min = 1, max = 3},        },        premium_container = {            {item = "WEAPON_PISTOL", chance = 70, min = 1, max = 1},            {item = "WEAPON_PISTOL_MK2", chance = 80, min = 1, max = 1}        },        premium_container_2 = {            {item = "thermite", chance = 70, min = 1, max = 2},            {item = "WEAPON_STUNGUN", chance = 80, min = 1, max = 1},        }    },    PremiumContainerRequiredItem = 'plasma_drill', -- Item required to open premium containers    PremiumContainerProgressDuration = 7500,       -- Time in ms to open premium containers    RegularCrateDuration = 2500, -- Time in ms to regulate crate opening    PossibleTerritories = true,  -- Integrates my paid territrory script - https://possible-scripts.tebex.io/package/6045013 set false if no likey    TerritoriesInfluence = 10, -- Only relevant if PossibleTerritories is true    TerritoriesRewardItem = 'cash', -- Only relevant if PossibleTerritories is true    TerritoriesRewardAmount = 30, -- Only relevant if PossibleTerritories is true    PossibleGangLevels = true,  -- Integrates my paid gang level script - https://possible-scripts.tebex.io/package/6036883 set false if no likey    GangXPReward = 5, -- Only relevant if PossibleGangLevels is true}
JDB-NET Logo
Partner Service

Self-hosted unlimited logs with managed Grafana

JDB-NET provides a self-hosted solution with unlimited logs, a fully managed Grafana instance, and unlimited users. Perfect for FiveM servers that need comprehensive logging and monitoring.

Check out JDB-NET