An advanced, framework-independent resource for managing your server's police CCTV network. This script provides law enforcement with a powerful, high-performance tool to monitor city streets, vital facilities, and critical infrastructure through a highly interactive interface.
Key Features
-
Framework Auto-Detection: Automatically detects and integrates with Qbox, QBCore, and ESX frameworks, while also offering full support for Standalone servers.
-
Motion Sensor System: The server runs a continuous background check every two seconds to detect players within a 25-meter radius of any camera. When movement is detected, instant visual alerts are pushed to officers currently viewing the network.
-
Dynamic Camera Control: Enjoy full control over movable cameras with smooth mouse panning, adjustable zoom levels (In/Out), and toggleable Night Vision mode.
-
Immersive Animations: Accessing the network triggers a custom animation that places a tablet in the character's hands to enhance roleplay realism. The tablet and animation are automatically cleared the moment the UI is closed.
-
Persistent Favorites: Officers can bookmark high-priority cameras to their personal favorites list for rapid deployment. Favorites are permanently saved to the database and linked to the player's license identifier.
-
Smart Categorization: Camera feeds are neatly organized into clear, accessible categories (e.g., Banks, Markets, Highways, Healthcare) for quick navigation.
-
Integrated Operations Map: The user interface features a built-in interactive map detailing the exact geographical distribution of all available camera feeds.
-
Dual Access Methods: Authorized personnel can open the network from anywhere using the
/cctv command. Alternatively, players can access the system via physical terminals placed strategically around the map using a built-in [E] key interaction.
-
Advanced Permissions & Security: System access is strictly managed via job roles (e.g., police, sheriff, state) or ACE permissions for Standalone mode. Server owners can also lock specific cameras so they are only visible to designated departments.
Requirements & Dependencies
- The script is completely self-contained and does not require any third-party inventory, target, or interaction resources.
- The only required dependency is
oxmysql, which is strictly used to create and manage the small, persistent favorites table.
In-Camera Controls
-
Mouse Movement: Pan and rotate the camera.
-
Mouse Wheel: Adjust zoom level (Zoom In / Zoom Out).
-
[N] Key: Toggle Night Vision.
-
[R] Key: Reset the camera to its default viewing angle.
-
[Backspace]: Exit the active camera feed and return to the network directory.
-
[Esc]: Close the CCTV system completely.