DyScript
  • Welcome
  • Official Store
  • Discord
  • Assets
    • ds-arcade
      • Installation
      • FAQ
      • Configuration Files
      • Mapping
    • ds-soundbuildings
      • Installation
      • FAQ
      • Configuration Files
    • ds-carkeys
      • Installation
      • FAQ
      • Configuration Files
      • Developer API
        • Client Exports
        • Serveur Exports
      • Commands
    • ds-notifications
      • Installation
      • Show code
      • FAQ
      • Developer API
        • Client Exports
        • Serveur Exports
    • ds-pedoffline
      • Installation
      • FAQ
      • Configuration Files
      • SQL
    • ds-freecam
      • Installation
      • FAQ
      • Configuration Files
Powered by GitBook
On this page
  1. Assets
  2. ds-freecam

Configuration Files

config.lua

-- ______                     _       _                        
-- |  _  \                   (_)     | |                       
-- | | | |_   _ ___  ___ _ __ _ _ __ | |_   ___ ___  _ __ ___  
-- | | | | | | / __|/ __| '__| | '_ \| __| / __/ _ \| '_ ` _ \ 
-- | |/ /| |_| \__ \ (__| |  | | |_) | |_ | (_| (_) | | | | | |
-- |___/  \__, |___/\___|_|  |_| .__/ \__(_)___\___/|_| |_| |_|
--         __/ |               | |                             
--        |___/                |_|                             
-- © Copyright 2024 - 2025 DyScript.com tous droits réservés 

-- ds_FreeCam configuration table
ds_FreeCam = {}
ds_FreeCam.Locale = "fr" -- language available (en) (fr)
-- Maximum camera distance from the player
ds_FreeCam.MaxDistance = 20.0
-- Mouse sensitivity for camera movement
ds_FreeCam.MouseSensitivity = 10.0
-- Distance at which a warning is shown
ds_FreeCam.warningDistance = 2.0
-- Field of view (FOV) settings for the camera
ds_FreeCam.Fovs = {
    MinFov = 1.0,           -- Minimum FOV value
    MaxFov = 100.0,         -- Maximum FOV value
    ZoomSpeed = 5.0,        -- Speed of zooming in/out
    ZoomSmoothness = 0.1,   -- Smoothness of zoom transitions
    TargetFov = 90.0        -- Default target FOV
}
-- List of instruction buttons and their descriptions
ds_FreeCam.InstructionsButtons = {
    { button = "~INPUT_FRONTEND_RRIGHT~",   text = _U('back') },         -- Back
    { button = "~INPUT_MOVE_UP_ONLY~",      text = _U('forward') },      -- Move forward
    { button = "~INPUT_MOVE_DOWN_ONLY~",    text = _U('backward') },     -- Move backward
    { button = "~INPUT_JUMP~",              text = _U('up') },           -- Move up
    { button = "~INPUT_DUCK~",              text = _U('down') },         -- Move down
    { button = "~INPUT_SPRINT~",            text = _U('speedup') },      -- Speed up (Shift)
    { button = "~INPUT_WEAPON_WHEEL_PREV~", text = _U('zoomin') },       -- Zoom in
    { button = "~INPUT_WEAPON_WHEEL_NEXT~", text = _U('zoomout') },      -- Zoom out
    { button = "~INPUT_DETONATE~",          text = _U('attachcam') }     -- Attach camera
}
-- List of authorized groups for using the FreeCam
ds_FreeCam.Groups = {
    _dev = true,         -- Developer group
    admin = true,        -- Admin group
    superadmin = true,   -- Superadmin group
    user = true          -- Regular user group
}
-- Command configuration for activating the FreeCam
ds_FreeCam.Command = {
    active = true,      -- Whether the command is enabled
    name = "freecam"     -- Command name to activate FreeCam
}
-- Default movement speed for the FreeCam
ds_FreeCam.Speed = 0.1
-- Speed multiplier when sprinting in FreeCam
ds_FreeCam.SpeedMultiplier = 3.0
-- Key to toggle FreeCam mode
ds_FreeCam.FreecamKey = "F3"

Last updated 8 days ago