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

# Configuration

```lua
Config = {}
Config.ItemName = "camera"
Config.MetaItem = true -- If true, uses item metadata (current way). If false, saves everything to database (SQL) under player's citizenid/identifier.
Config.UseSDCard = true
Config.SDCardItemName = "sdcard"
Config.SDCardGB = 8.0
Config.SDCardMaxPhotos = 50
Config.PrintedImageItemName = "printed_image"
Config.EnableURLPrinting = true

Config.locales = {}
Config.Locale = "en"

function getLocale(index, key)
    return Config.locales[Config.Locale][index][key]
end

Config.PhotoUpload = {
    provider = "discord",
    discordWebhook = "https://discord.com/api/webhooks/1407668529603543154/K-lIDR7lQPcK1HTrPFBAPLqgp9Lz59KVB_XoIkznMVDr9OCOf0rR_sk8Vc-lb2Yj2DQH",
    fivemanageApiKey = "",
    fivemanageEndpoint = "https://api.fivemanage.com/api/image",
    encoding = "png", -- "png" for lossless, or "jpg", "webp"
    quality = 1.0,    -- 0.0 to 1.0 (highest quality)
}

Config.PrintLocations = {
    {
        coords = vec4(448.01, -974.12, 31.44, 180.59),
        job = {"police", "bcso"},
    }
}

Config.CameraEffects = {
    { label = "Default", value = "default" },

    -- Camera / CCTV
    { label = "Cinema", value = "cinema" },
    { label = "Projector", value = "projector" },
    { label = "Black & White", value = "CAMERA_BW" },
    { label = "Secret Camera", value = "secret_camera" },
    { label = "Security Camera", value = "CAMERA_secuirity" },
    { label = "Security Fuzz", value = "CAMERA_secuirity_FUZZ" },
    { label = "Scanline Cam", value = "scanline_cam" },
    { label = "Scanline Cheap", value = "scanline_cam_cheap" },
    { label = "Broken Camera", value = "Broken_camera_fuzz" },

    -- Replay Effects
    { label = "Brightness +", value = "rply_brightness" },
    { label = "Brightness -", value = "rply_brightness_neg" },
    { label = "Contrast +", value = "rply_contrast" },
    { label = "Contrast -", value = "rply_contrast_neg" },
    { label = "Saturation +", value = "rply_saturation" },
    { label = "Saturation -", value = "rply_saturation_neg" },
    { label = "Motion Blur", value = "rply_motionblur" },
    { label = "Vignette", value = "rply_vignette" },
    { label = "Vignette -", value = "rply_vignette_neg" },

    -- Bloom
    { label = "Bloom", value = "Bloom" },
    { label = "Bloom Light", value = "BloomLight" },
    { label = "Bloom Mid", value = "BloomMid" },

    -- Filmic
    { label = "NG Filmic 1", value = "NG_filmic01" },
    { label = "NG Filmic 2", value = "NG_filmic02" },
    { label = "NG Filmic 3", value = "NG_filmic03" },

    -- Scope
    { label = "Sniper Scope", value = "Sniper" },
    { label = "Remote Sniper", value = "RemoteSniper" },
    { label = "Scope Zoom In", value = "scope_zoom_in" },
    { label = "Scope Zoom Out", value = "scope_zoom_out" },

    -- Turbo
    { label = "Turbo Dark", value = "RaceTurboDark" },
    { label = "Turbo Light", value = "RaceTurboLight" },
    { label = "Turbo Flash", value = "RaceTurboFlash" },

    -- Heli
    { label = "Heli Cam", value = "MP_heli_cam" },

    -- Drug / Dream
    { label = "Stoned", value = "stoned" },
    { label = "Stoned Aliens", value = "stoned_aliens" },
    { label = "Stoned Monkeys", value = "stoned_monkeys" },
    { label = "Drug Flying", value = "drug_flying_base" },
    { label = "Drug Drive In", value = "DrugsDrivingIn" },
    { label = "Drug Drive Out", value = "DrugsDrivingOut" },

    -- Beast
    { label = "Beast Intro 1", value = "BeastIntro01" },
    { label = "Beast Intro 2", value = "BeastIntro02" },
    { label = "Beast Launch 1", value = "BeastLaunch01" },
    { label = "Beast Launch 2", value = "BeastLaunch02" },

    -- Biker
    { label = "Biker Filter", value = "BikerFilter" },
    { label = "Biker Form", value = "BikerForm01" },
    { label = "Biker Flash", value = "BikerFormFlash" },

    -- Misc
    { label = "Red Mist", value = "REDMIST" },
    { label = "Red Mist Blend", value = "REDMIST_blend" },
    { label = "Sleep", value = "sleeping" },
    { label = "Chop Vision", value = "CHOP" },
    { label = "MP Bull", value = "MP_Bull_tost" },
    { label = "Corona Switch", value = "MP_corona_switch" },

    -- Spectator
    { label = "Spectator 1", value = "spectator1" },
    { label = "Spectator 2", value = "spectator2" },
    { label = "Spectator 3", value = "spectator3" },
    { label = "Spectator 4", value = "spectator4" },
    { label = "Spectator 5", value = "spectator5" }
}
```
