Exports
Explore our selection of exports that enhance your resource functionality.
Shared Camera Exports
Section titled “Shared Camera Exports”When called, returns if the camera is online or not. Requires camera ID.
local status = exports['cis_HawkEyeSurveillance']:GetCameraStatus(camID)When called, returns the camera table with all the data. Requires the camera ID.
local camData = exports['cis_HawkEyeSurveillance']:GetCameraData(camID)When called, returns the amount of cameras currently on the server.
local cameraAmount = exports['cis_HawkEyeSurveillance']:GetCameraAmount()When called, returns 2 variables, the first one is a boolean value on whether the user is currently viewing a camera, and the second variable the camera ID (if the user is viewing a camera).
local viewingCamera, cameraID = exports['cis_HawkEyeSurveillance']:GetCurrentCameraID()Server Camera Exports
Section titled “Server Camera Exports”Sets the owner metadata for the specific camera ID. Requires a table with 2 values, type and value.
owner = { type = "job" or "personal" value = "jobname" or playerIdentifier --Citizen ID for QBCORE}exports['cis_HawkEyeSurveillance']:SetCameraOwnerMetadata(camID, owner)Sets the full metadata for the specific camera ID. This does not set owner!
metadata = { folder = "Pacific Bank Standard CCTV", rotationLimits = { leftRight = 360.0, upDown = 50.0 }, fov = 80.0, canRotate = true, rotation = { x = 0.0, z = 40.6501350402832, y = 0.0 }, location = { x = 253.7297821044922, z = 104.80838012695313, y = 229.77725219726566 }, sensorDistance = 20.0, type = "high-monochrome", model = "hei_prop_bank_cctv_02", autoRecord = true, sensorTime = os.time(), label = "Pre-Vault Cam #11"}
exports['cis_HawkEyeSurveillance']:SetCameraFullMetadata(camID, metadata)Restores camera to the online state. Requires camera ID.
exports['cis_HawkEyeSurveillance']:RestoreBrokenCamera(camID)Shared Jammer Exports
Section titled “Shared Jammer Exports”When called, returns the jammer table with all the data. Requires the jammer ID.
local jammerData = exports['cis_HawkEyeSurveillance']:GetJammerData(camID)When called, returns the amount of jammers currently on the server.
local jammerAmount = exports['cis_HawkEyeSurveillance']:GetJammerAmount()