Under Door Camera (Snake Cam / Mirror Gun)

A script by Gamzky

No reviews yet.
Under Door Camera (Snake Cam / Mirror Gun) main image

Full Description

bd9ed839211fbdd1bcb4cce6250965f8380c45d7

Under Door Camera (Snake Cam / Mirror Gun)

Bring tactical realism to your law enforcement roleplay with the Under Door Camera script. Inspired by real-world devices and other games like the snake cam and mirror gun, this tool lets officers safely peek under doors to see what’s behind it without opening them. Perfect for robberies, raids, SWAT scenarios, and investigations.

:shopping_cart: Get it here: gamzkystore.com

:question: Support: Discord

:movie_camera: Detailed preview: Youtube

Features

  • Door Detection: Automatically recognizes doors in front of you.
  • Camera View: Place the camera under a door and get a live view of the other side.
  • Highly Configurable: Customize additional doors, blocked doors, camera angles, keys, and more.
  • Standalone: Works standalone. But if you want to use the item it also works out of the box with ESX, QBCore, qbox and ox_inventory.

Resmon: Idle: 0.00ms - Camera active: 0.02ms

Core/framework related functions are still accessible in the encrypted version, feel free to create a support ticket in our Discord in case of questions.

Config
Config = {
    propHash = `w_am_hackdevice_m32`,
    propBone = 18905,
    propPosition = { 0.12, 0.06, -0.06, -160.00, -1.50, 8.00 },

    animDict = 'amb@world_human_bum_wash@male@low@idle_a',
    animName = 'idle_a',
    animFlag = 1,

    itemName = 'doorcamera',
    -- commandName = 'doorcam', -- Uncomment this if you want to use a command to activate the camera
    commandRestricted = false, -- If true, then players will need the ace permission to use the command

    -- Camera settings
    cameraFOV = 60.0,    -- Field of view for the camera
    heightOffset = 0.2,  -- Height above ground level
    lengthOffset = 0.25, -- Additional distance from door

    -- Camera control settings
    mouseSensitivity = 5.0, -- Mouse sensitivity for camera control
    maxPitchAngle = 40.0,   -- Maximum up/down angle (vertical limit)
    maxYawAngle = 50.0,     -- Maximum left/right angle from center (horizontal limit)
    disabledControls = {},  -- Controls that are disabled when the camera is active
    exitKeys = { 177 },     -- Keys that exit the camera

    -- Door detection
    maxDoorDistance = 1.0, -- Maximum distance to detect doors
    raycastFlags = 511,    -- Raycast flags for entity detection

    -- Timecycle settings
    timecycleModifier = 'CAMERA_BW',
    timecycleIntensity = 1.0,

    -- Other settings
    disableRadar = true, -- Disable the radar when the camera is active
    soundEffect = true,  -- Play a sound effect when the camera is activated/deactivated
}

Config.Locales = {
    ['no_door'] = 'No door in front of you',
    ['door_in_use'] = 'The door is already in use',
    ['after_use'] = 'Press RMB to exit',
    ['door_blocked'] = 'You cannot use the door camera on this door',
    ['cannot_use'] = 'You cannot use this right now',
}

-- Additional models that don't pass the default door model check
Config.DoorModels = {
    [`v_ilev_gb_teldr`] = true,
}

-- Doors that are disabled from being used with the mirror gun
Config.BlockedDoors = {
    [`hei_v_ilev_bk_safegate_pris`] = true,
    [`v_ilev_ph_cellgate`] = true,
}

Code is accessible No, but there is an unencrypted version
Subscription-based No
Lines (approximately) 626
Requirements None
Support Yes

Config Merger
Have you tried Config Merger? Merge your configs easily