gearConfiguration

Configuration files overview:

Config = {}

-------------------------------------------------------------------------------
-- [ SYSTEM CORE ]
-------------------------------------------------------------------------------
Config.Framework = "ESX" -- ESX / QBCORE
Config.ItemName = "airstrike"

-------------------------------------------------------------------------------
-- [ UAV PLANE SETTINGS ]
-------------------------------------------------------------------------------
Config.Plane = {
    Model = "titan", -- The model of the plane
    Height = 250.0, -- The height where the plane should fly
    Radius = 300.0, -- The radius where the plane should circle around
    Speed = 50.0, -- The speed of the plane
    StartingDistance = 800.0, -- The starting distance where the plane spawn
    StartingHeight = 300.0, -- The starting hight where the plane spawn
    Duration = 60, -- How long the player can control the UAV (in seconds)
    Circles = 1, -- This is how much circle should the plane do
    DistanceToShoot = 600, -- This is the distance where the plane can shoot
    CameraHeightOffset = 7, -- This is how much lower the camera than the plane
}

-------------------------------------------------------------------------------
-- [ UAV CONTROLS ]
-- https://docs.fivem.net/docs/game-references/controls/
-------------------------------------------------------------------------------
Config.Controls = {
    ZoomIn = 10,  -- Zoom in button (PageUp)
    ZoomOut = 11, -- Zoom out button (PageDown)
    ZoomInSecondary = 15, -- Zoom in secondary button (Mouse scrollwheel)
    ZoomOutSecondary = 14, -- Zoom out secondary button (Mouse scrollwheel)
    MaxZoomIn = 20.0, -- The max value that the camera can zoom in (lower = more zoom in)
    MaxZoomOut = 100.0, -- The max value that the camera can zoom out (higher = more zoom out)
    ZoomSmoothness = 15, -- The value to make the zoom more smooth (lower = smoother)
    SwitchWeapon = 29, -- Switch weapon button (B)
    SwitchMode = 301, -- Switch mode button (M)
    Shoot = 24, -- Shoot button
    ShootDelay = 0, -- Delay between shots
}

-------------------------------------------------------------------------------
-- [ UAV WEAPONS ]
-------------------------------------------------------------------------------
Config.Weapons = {
    Small = {
        Asset = "WEAPON_AIRSTRIKE_ROCKET",
        MaxRockets = 10, -- How many times you can shoot
        RocketsPerShot = 1,
        Damage = 50.0,
        SprayRadius = 0,
        SprayDelay = 0,
    },
    Medium = {
        Asset = "WEAPON_AIRSTRIKE_ROCKET",
        MaxRockets = 5,
        RocketsPerShot = 3,
        Damage = 100.0,
        SprayRadius = 5,
        SprayDelay = 50, -- in ms
    },
    Big = {
        Asset = "WEAPON_AIRSTRIKE_ROCKET",
        MaxRockets = 3,
        RocketsPerShot = 5,
        Damage = 150.0,
        SprayRadius = 10,
        SprayDelay = 100, -- in ms
    },
    DeathTime = 5000, -- The time to delete vehicle after getting shot
}

-------------------------------------------------------------------------------
-- [ CAMERA & HUD EFFECTS ]
-------------------------------------------------------------------------------
Config.Camera = {
    UseCameraShake = false,
    ShakeAmplitude = {
        Small = 0.1,
        Medium = 0.2,
        Big = 0.3,
    },
    UseIndicator = true,
    IndicatorColorPlayer = { 0, 255, 0, 255 },
    IndicatorColorEnemy = { 255, 0, 0, 255 },
    EnableRadar = false, -- Enable radar after item has been used
    Effect = "scanline_cam_cheap",
}

-------------------------------------------------------------------------------
-- [ SOUND MODULE ]
-------------------------------------------------------------------------------
Config.Sound = {
    Volume = 0.0,
    DistanceToAlert = 100, -- The distance checked from my player to alert when plane is active
}

-------------------------------------------------------------------------------
-- [ LOCALIZATION ]
-------------------------------------------------------------------------------
Config.Locales = {
    ["EN"] = {
        Rockets = {
            ["small"] = "Single Strike",
            ["medium"] = "Burst Strike",
            ["big"] = "Full Strike",
        },
        UI = {
            modeText = "Mode",
            timeText = "Time",
            normal = "Normal",
            thermal = "Thermal",
            nightvision = "Night Vision",
            noShoot = "Waiting for clear target",
            laptopTitle = "Airstrike Tactical-Bomber",
            laptopButton = "Launch",
        }
    }
}

Config.Language = "EN"

Last updated