Config File

Config = {}

Config.CameraSpeed = 0.1          -- Normal movement speed
Config.FastSpeed = 0.25           -- SHIFT for faster movement
Config.VerticalSpeed = 0.025      -- Q/E for vertical movement
Config.DefaultFOV = 50.0          -- Default zoom level
Config.MinFOV = 20.0              -- Minimum zoom (closest)
Config.MaxFOV = 100.0             -- Maximum zoom (farthest)
Config.ZoomSpeed = 1.5            -- Mouse scroll zoom speed
Config.RotateSpeed = 1.5          -- Mouse rotation speed
Config.MaxDistance = 10.0         -- Maximum distance from character (meters)

Config.SmoothZoom = true          -- Enable smooth zoom transitions
Config.SmoothMovement = true      -- Enable smooth movement transitions
Config.SmoothRotation = true      -- Enable smooth rotation transitions
Config.ZoomSmoothness = 0.15      -- Zoom interpolation speed (0.1 = slow, 0.3 = fast)
Config.MovementSmoothness = 0.2   -- Movement interpolation speed (0.1 = slow, 0.3 = fast)
Config.RotationSmoothness = 0.25  -- Rotation interpolation speed (0.1 = slow, 0.4 = fast)

-- | If you want to change the keys (https://docs.fivem.net/docs/game-references/controls/)
Config.Keys = {
    Toggle = 0,                   -- V
    MoveForward = 32,             -- W
    MoveBackward = 8,             -- S
    MoveLeft = 34,                -- A
    MoveRight = 9,                -- D
    MoveUp = 44,                  -- Q
    MoveDown = 38,                -- E
    SpeedBoost = 21,              -- SHIFT
    ZoomIn = 15,                  -- SCROLL UP
    ZoomOut = 14,                 -- SCROLL DOWN
    CinemaMode = 47,              -- G
    HideInstructions = 74         -- H
}

Config.LongPressTime = 1000       -- Toggle freecam time (1000 = 1 second)

Config.UI = {
    ShowHud = true, -- | If you want to hide hud when freecam is active, change this to false and add your own ShowHud, HideHud exports
    ShowInstructions = true -- | If you want to hide instructions when freecam is active, change this to false
}

Config.HudExports = {
    ShowHud = function() -- | Add your own ShowHud export here
        
    end,
    HideHud = function() -- | Add your own HideHud export here
        
    end
}

Last updated