This plugin gives your players a fast utility tool to quickly add all their CCTV Cameras into a computer station. Additionally it allows them to monitor if their cameras are online, which could indicate that there is an issue with the power source.
It quickly allows all players to add all of the server cameras, i.e. Dome/Oil Rig cameras to their computer station, along with their own.
To add/remove cameras from the list you need open the CustomCameras.json file. This file can be found under Oxide/Data/CCTVUtilities/CustomCameras.json Once you have the file open, you can add new cameras by simply typing their unique identifiers.
When editing the file be aware of the formatting of the default cameras and try and replicate it. Being careful of the [ ] " " and , characters as these are crucial to the file's integrity. If the file stops working once it has been edited, use a to check the file is still correctly formatted. (The parser linked is able to tell you at which line there is a formatting error)
To ensure your players can use the commands you need to make sure they have the correct permissions. For help with adding permissions to groups, please refer to the UMod Documentation
It quickly allows all players to add all of the server cameras, i.e. Dome/Oil Rig cameras to their computer station, along with their own.
Chat Commands
- /cctv help - Show help information in console
- /cctv status <me | server | all> - Show a list of all cameras (in selected category) in console
- /cctv add <me | server | all > - Add cameras in selected category to the computer station you're currently looking at
- /cctv clear - Clears cameras from the computer station you're currently looking at
- /cctv rename <Camera ID> <New Name> - Rename a camera identifier remotely
- /cctv autoname <on | off | toggle> - Automatically names cameras as they are placed
- /cctv autoadd <on | off | me | server | custom | all | toggle> - Automatically adds cameras to the computer station when placed
- /cctv autopowered <on | off | toggle> - Automatically powers cameras when placed / server restarts
- /cctv about - Show information about plugin
Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.- cctvutilities.help - Allows player to use /cctv help
- cctvutilities.status.me - Allows player to use /cctv status me
- cctvutilities.status.server - Allows player to use /cctv status server
- cctvutilities.status.custom - Allows player to use /cctv status custom
- cctvutilities.status.all - Allows player to use /cctv status all
- cctvutilities.clear - Allows player to use /cctv clear
- cctvutilities.rename - Allows player to use /cctv rename <Camera ID> <New Name>
- cctvutilities.add.me - Allows player to use /cctv add me
- cctvutilities.add.server - Allows player to use /cctv add server
- cctvutilities.add.custom - Allows player to use /cctv add custom
- cctvutilities.add.all - Allows player to use /cctv add all
- cctvutilities.add.clear - Allows player to use /cctv add clear
- cctvutilities.autoname - Allows player to use /cctv autoname <on | off | toggle>
- cctvutilities.autoadd - Allows player to use /cctv autoadd
- cctvutilities.autoadd.on - Allows player to use /cctv autoadd on
- cctvutilities.autoadd.off - Allows player to use /cctv autoadd off
- cctvutilities.autoadd.toggle - Allows player to use /cctv autoadd toggle
- cctvutilities.autoadd.me - Allows player to use /cctv autoadd me
- cctvutilities.autoadd.server - Allows player to use /cctv autoadd server
- cctvutilities.autoadd.custom - Allows player to use /cctv autoadd custom
- cctvutilities.autoadd.all - Allows player to use /cctv autoadd allPermissions for this command are extensive and are likely to get changed in the future
- cctvutilities.autopowered - Allows player to use /cctv autopowered <on | off | toggle>
Localization
The default messages are in the CCTVUtilities file under the lang/en directory. To add support for another language, create a new language folder (e.g. de for German) if not already created, copy the default language file to the new folder and then customize the messages.Customisation
Included in the plugin is a CustomCameras file, this file allows you to customise a list of cameras players can easily access using /cctv add custom or /cctv autoadd custom. This means admins can create a mixed list of cameras provided by Facepunch and ones they have installed themselves for players to use.To add/remove cameras from the list you need open the CustomCameras.json file. This file can be found under Oxide/Data/CCTVUtilities/CustomCameras.json Once you have the file open, you can add new cameras by simply typing their unique identifiers.
When editing the file be aware of the formatting of the default cameras and try and replicate it. Being careful of the [ ] " " and , characters as these are crucial to the file's integrity. If the file stops working once it has been edited, use a to check the file is still correctly formatted. (The parser linked is able to tell you at which line there is a formatting error)
To ensure your players can use the commands you need to make sure they have the correct permissions. For help with adding permissions to groups, please refer to the UMod Documentation
- cctvutilities.add.custom needs to be granted in order to use /cctv add custom which will add the custom cameras to the computer station the player is currently looking at.
- cctvutilities.autoadd AND cctvutilities.autoadd.custom needs to be granted in order to use /cctv autoadd custom which will automatically add the custom cameras to newly placed Computer Stations.