/sf_camerasecurity

Advanced camera script for QBCore Framework

Primary LanguageLua

We have a goal to complete 1000 member in discord.

Framework Support

SF Camera Security

For all support questions, ask in our Discord support chat. Do not create issues if you need help. Issues are for bug reporting and new features only.

Preview

Dependencies

Installation

  • Download ZIP and UNZIP.
  • Drag and drop resource into your server files, make sure to remove -main in the folder name.
  • SQL Automatic added to your database no need to add manually.
  • add images from folder (install/item-images) to (qb-inventory/html/images).

qb-inventory

Add Items to (qb-core/shared/items.lua)

-- // Cameras
camera_pd = {name = 'camera_pd', label = 'PD Camera', weight = 3000,	type = 'item', image = 'camera_pd.png',	unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
camera_ems = { name = 'camera_ems', label = 'EMS Camera', weight = 3000, type = 'item', image = 'camera_ems.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
camera_citizen = { name = 'camera_citizen', label = 'Camera', weight = 3000, type = 'item', image = 'camera_citizen.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
camera_viewer = { name = 'camera_viewer', label = 'Camera Viewer', weight = 1000, type = 'item', image = 'camera_viewer.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
camera_paper = { name = 'camera_paper', label = 'Camera Signal Paper', weight = 200, type = 'item', image = 'camera_paper.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
camera_tablet = { name = 'camera_tablet', label = 'CamView Tablet', weight = 2000, type = 'item', image = 'camera_tablet.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
vpn = {name = 'vpn', label = 'VPN Router', weight = 1000, type = 'item', image = 'vpn.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = ''},

ox_inventory

Add Items to (ox_inventory/data/items.lua)

['camera_pd'] = {
	label = 'PD Camera',
	weight = 3000,
	stack = false,
	close = true,
	consume = 0,
	server = {
		export = 'sf_camerasecurity.cam_camera_pd'
	},
	client = {
		image = 'camera_pd.png',
	}	
},

['camera_ems'] = {
	label = 'EMS Camera',
	weight = 3000,
	stack = false,
	close = true,
	consume = 0,
	server = {
		export = 'sf_camerasecurity.cam_camera_ems'
	},
	client = {
		image = 'camera_ems.png',
	}	
},

['camera_citizen'] = {
	label = 'Camera',
	weight = 3000,
	stack = false,
	close = true,
	consume = 0,
	server = {
		export = 'sf_camerasecurity.cam_camera_citizen'
	},
	client = {
		image = 'camera_citizen.png',
	}	
},

['camera_viewer'] = {
	label = 'Camera Viewer',
	weight = 1000,
	stack = false,
	close = true,
	consume = 0,
	server = {
		export = 'sf_camerasecurity.cam_camera_viewer'
	},
	client = {
		image = 'camera_viewer.png',
	}	
},

['camera_paper'] = {
	label = 'Camera Signal Paper',
	weight = 200,
	stack = false,
	close = true,
	consume = 0,
	server = {
		export = 'sf_camerasecurity.cam_camera_paper'
	},
	client = {
		image = 'camera_paper.png',
	}	
},

['camera_tablet'] = {
	label = 'CamView Tablet',
	weight = 2000,
	stack = false,
	close = true,
	consume = 0,
	server = {
		export = 'sf_camerasecurity.cam_camera_tablet'
	},
	client = {
		image = 'camera_tablet.png',
	}	
},

['vpn'] = {
	label = 'VPN Router',
	weight = 1000,
	stack = false
},

['screwdriverset'] = {
	label = 'Toolkit',
	weight = 1000,
	stack = false
},

This item comming default in qb-core check before add please

screwdriverset               = { name = 'screwdriverset', label = 'Toolkit', weight = 1000, type = 'item', image = 'screwdriverset.png', unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Very useful to screw... screws...' },

If you are use qb-inventory go this file qb-inventory/html/js/app.js and go line 343 and add this code

case "camera_paper":
      return `<p><strong>Camera Signal: </strong><span>${itemData.info.signal}</span>`;
  • Final step check the config.lua if you want modify some config.