SCode StudiosSCodeDocs
Tebex Store

Configuration

Configuration of SCode Freecam

All settings are in config.lua. This file is not encrypted.

Keys and camera

Lua
Config = {
    ToggleKey = 'V', -- Toggle camera mode on/off
    CycleCameraKey = 'F6', -- Change camera angle
    FilterKey = 'G', -- Change camera filter
    SavePosKey = 'B', -- Save camera position
    HoldDuration = 1, -- Duration to hold the toggle key
    MoveSpeed = 0.08, -- Camera movement speed
    VerticalSpeed = 0.05, -- Vertical movement speed (up/down)
    RotateSpeed = 3.2, -- Rotation speed (mouse movement)
    MaxHorizontalDistance = 6.0, -- Max horizontal distance from the player
    MaxVerticalDistance = 3.5, -- Max vertical distance from the player
    CameraFOV = 45.0, -- Default camera field of view
    ZoomSpeed = 1.0, -- Zoom speed
    MinZoom = 10.0, -- Minimum zoom distance (FOV)
    MaxZoom = 90.0, -- Maximum zoom distance (FOV)
    QERotateSpeed = 1.5, -- Rotation speed when using Q/E keys

HoldDuration is in seconds: the toggle key has to be held that long to enter or leave camera mode.

Keys are names, not control IDs. Supported names are F1–F8, 1–5, letters, SPACE, LEFTCTRL, LEFTSHIFT, TAB, ENTER, BACKSPACE and the arrow keys (UP, DOWN, LEFT, RIGHT). H always opens the help panel.

Filters

Lua
    Filters = {
        enabled = true,
        current = 'normal',
        list = {
            normal = { name = "Normal", shader = nil },
            bw = { name = "Black & White", shader = "rply_saturation_neg" },
            contrast = { name = "Contrast", shader = "MP_Arena_theme_night" },
            vintage = { name = "Vintage", shader = "rply_vignette" },
            hdr = { name = "HDR", shader = "rply_saturation" },
            warm = { name = "Warm Tone", shader = "rply_contrast_neg" }
        }
    },

shader is a GTA timecycle modifier name. You can add your own entries to list.

Cinematic mode and saved positions

Lua
    CinematicMode = {
        enabled = false,
        letterboxSize = 0.1, -- Size of letterbox (0.0 - 0.3)
        dofEnabled = false,
        dofStrength = 0.3, -- Depth of field strength (0.0 - 1.0)
        motionBlur = 0.2, -- Motion blur strength (0.0 - 1.0)
        vignetteStrength = 0.2 -- Vignette effect strength (0.0 - 1.0)
    },

    SavedPositions = {
        maxSaves = 100, -- Maximum number of saved positions
        saveFile = 'saved_cameras.json' -- File to save camera positions
    },

Panel

Config.UI sets the panel title, its position (right, left, top, bottom), the theme (dark, light, custom) and the colours of each theme. The controls, tabs, filters, positions, cinematic and settings entries hold the texts of the panel, so you can translate them:

Lua
    UI = {
        title = "Camera Controls",
        position = "right", -- right, left, top, bottom
        theme = "dark", -- dark, light, custom
        themes = {
            custom = {
                background = "rgba(157, 168, 30, 0.95)",
                text = "#000000",
                accent = "#2980b9",
                border = "rgba(94, 8, 8, 0.59)"
            },
            -- dark, light ...
        },
        -- controls, tabs and texts ...
    },

Players can change the theme in the Settings tab. Their choice is saved on their client.

Framework and notifications

disableInVehicle and disableWhenDead are only checked when Framework.enabled is true.

Lua
    Framework = {
        enabled = true,
        name = 'qb', -- qb or esx
        disableInVehicle = true, -- Camera mode can't be used in a vehicle
        disableWhenDead = true -- Camera mode can't be used while dead
    },

    Notify = {
        type = 'ox', -- ox, qb, esx (anything else uses GTA notifications)
        messages = {
            enter = "🎥 Camera Mode Activated!",
            exit = "🎥 Camera Mode Disabled!",
            filter = "🎨 Filter Changed: %s",
            saved = "📸 Camera position saved: %s",
            loaded = "📸 Camera position loaded: %s",
            deleted = "🗑️ Camera position deleted: %s",
            error = "❌ Error: %s"
        }
    }
}

Last updated: December 6, 2026