Usage
Camera
- Use the
security_cameraitem in your inventory. - Fill out the devices unique name in the input form.
- Place the camera wherever you want it, facing the initial direction it should be. (Note: The camera can only move left/right a specific amount, so make sure to place it in the correct direction)
Sensor
- Use the
motion_sensoritem in your inventory. - Fill out the devices unique name in the input form.
- Place the sensor wherever you want it, facing the direction it should be scanning.
Device Menu
- Use the command
/devicescommand to access the device menu. - From hear you can do a variety of device management.
- You will also have a button for adding access to new devices, shared to you.
| Feature | Description |
|---|---|
| Access (Camera Only) | View the current feed of a camera if it's online and functioning |
| Locate | Mark the location of a device on your GPS |
| Share | Copy the devices UUID to your clipboard, so you can share it with other players |
| Remove Access | Remove your access to the device |
Configuration
config/shared.lua
| Option | Default | Description |
|---|---|---|
Config.Models | table<string, number> | The model of each device |
Config.TypeRouting | table<string, boolean> | Which devices can be placed in a route bucket |
Config.MotionSensorDistance | 7.5 | How far each motion sensor detects up-to |
Config.MotionSensorResetTime | 25 | How long a motion sensor takes to re-activate after detecting movement |
Config.DevicePlaceDist | 2.0 | How close you have to be to a device's position in order to place it down |
Config.CameraMaxRotation | 65.0 | The max amount a camera can turn left or right from its initial position |
Config.BlockedMaterials | table<string, number> | Which materials hashes are blocked in device placement |
config/server.lua
| Option | Default | Description |
|---|---|---|
SvConfig.DeviceLifeLength | 8 | How long each device lasts before it is auto deleted |
SvConfig.Items | table<string, string> | All item names |
SvConfig.ItemToDeviceType | table<string, string> | Item names to device type map |
SvConfig.ShowAllCommand.name | show_all_security | Name for viewing all currently placed down devices |
SvConfig.ShowAllCommand.permission | group.admin | Permission group for the view all devices command |
SvConfig.DevicesCommand.name | devices | Name for viewing the devices menu |