Job Cameras
Last updated
Last updated
Cameras can be linked to a job as group where only the boss can add/remove cameras.
_ The needed permissions to add cameras to a job group can be found in client/editable/job.lua
The script reads if the player is boss using the laptop export isBoss(), you can replace this export with your own to match your server needs, make sure to return true/false.
_ The needed permissions to watch job cameras in the APP can be found in server/editable/job.lua
The watch job permission uses av_business by default, if you don't own this resource make sure to add your own job check, return true/false to allow the player to access the Job Cameras.
First we need to make sure the camera item we are gonna use allows being installed as job camera, for this go to config/items.lua, make sure that
job = true
in the camera settings.
Once you use the item and setup the camera position, if the permission canUseJob() returns true, in the groups list we are gonna be able to select our Job as group.
Complete the process just like any other camera, the camera will be added to your job group and can be accessed by anyone from your own organization.