Explore our selection of exports that enhance your resource functionality.
We offer a selection of exports to enhance your resource functionality, with ongoing expansion plans to accommodate even more features based on your valuable input. Feel free to share your suggestions with us.
Shared Camera Exports
SHARED
When called, returns if the camera is online or not. Requires camera ID.
local status = exports['cis_HawkEyeSurveillance']:GetCameraStatus(camID)
SHARED
When called, returns the camera table with all the data. Requires the camera ID.
local camData = exports['cis_HawkEyeSurveillance']:GetCameraData(camID)
SHARED
When called, returns the amount of cameras currently on the server.
local cameraAmount = exports['cis_HawkEyeSurveillance']:GetCameraAmount()
SHARED
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
SERVER-SIDED
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)
SERVER-SIDED
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)
SERVER-SIDED
Restores camera to the online state. Requires camera ID.