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

# Configuration

View the default configuration for the script!

config/config.lua:

```lua
Config = {}

-- Framework & Integrations
Config.Debug = true
Config.AutoRunSQL = true
Config.Framework = "auto" -- types: auto, standalone, esx, qbcore, qbox
Config.Notifications = "auto" -- types: auto, ox_lib, ps-ui, okokNotify, default
Config.Inventory = "auto" -- types: auto, ox_inventory, qb-inventory, qs-inventory, codem-inventory
Config.ImagePath = "auto" -- types: auto, or a custom path (e.g. "nui://ox_inventory/web/images")
Config.Locale = "en" -- locale to use for the resource (en, es, fr or make your own in locales/your_locale.json)

Config.ServerSpawn = false -- spawn entities on the server [RECOMMENDED]

-- Bodycam configuration
Config.Bodycam = {
    Command = "bodycam",
    ToggleBind = "",

    TabletCommand = "bodycams",
    TabletBind = "",

    CaptureResource = "screencapture",
    Encoding = "webp",
    Quality = 0.5,
    MaxWidth = 1024,
    MaxHeight = 576,

    FPS = 12,
    Bandwidth = 8000000,

    MaxPinned = 3,

    JobGroups = {
        { "police" },
        --{ "casino" },
    },
}

-- Bodycam prop configuration
Config.Bodycam.Prop = {
    Enabled = true,
    Model = "beyond_bodycam",
    Bone = 24818,
    Offset = vector3(0.15, 0.12, 0.12),
    Rotation = vector3(150.0, -90.0, 0.0),
    ArmorOffset = vector3(0.0, 0.04, 0.0),
}

-- Tablet animation configuration
Config.Bodycam.TabletAnim = {
    Enabled = true,
    Dict = "amb@code_human_in_bus_passenger_idles@female@tablet@idle_a",
    Name = "idle_a",
    Flag = 49,
    Prop = "prop_cs_tablet",
    Bone = 60309,
    Offset = vector3(0.03, 0.002, 0.0),
    Rotation = vector3(10.0, 160.0, 0.0),
}

-- Clips configuration
Config.Clips = {
    Enabled = true,

    LengthOptions = {
        ["10 Seconds"] = 10,
        ["30 Seconds"] = 30,
        ["1 Minute"]   = 60,
        ["2 Minutes"]  = 120,
        ["5 Minutes"]  = 300,
    },

    DefaultSeconds = 30,
    BufferFPS = 10,

    MaxUploadMB = 6,
    ClipMaxWidth = 640,

    UploadBandwidth = 32000000,
    MaxStorageMB = 100,

    MaxClipsPerOfficer = 100,
    MaxFolders = 30,
    DefaultFolder = "Unsorted",
}

```

config/config-sv.lua:

```lua
SV_CONFIG = {}

-- FiveManage configuration ( https://fivemanage.com )
SV_CONFIG.FiveManage = {
    ApiKey = "",

    -- API endpoints ( do not change unless you know what you are doing )
    UploadUrl = "https://api.fivemanage.com/api/v3/file/base64",
    DeleteUrl = "https://api.fivemanage.com/api/v3/file/"
}

```
