Code Monkey home page Code Monkey logo

sf_camerasecurity's Introduction

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).

Be careful, if you are use ox_inventory in QBCore framework dont add items in qb-core resource, require to add items in ox_inventory/data/items.lua ONLY.

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 = '' },
camera_personaltablet = { name = 'camera_personaltablet', label = 'Personal CamView', weight = 2000, type = 'item', image = 'camera_personaltablet.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
camera_personal = { name = 'camera_personal', label = 'Personal Camera', weight = 3000, type = 'item', image = 'camera_personal.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',
	}	
},

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

['camera_personaltablet'] = {
	label = 'Personal CamView',
	weight = 2000,
	stack = false,
	close = true,
	consume = 0,
	server = {
		export = 'sf_camerasecurity.cam_camera_personaltablet'
	},
	client = {
		image = 'camera_personaltablet.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.

sf_camerasecurity's People

Contributors

soufiane2214 avatar

Stargazers

Agimir avatar Theo avatar Agimir avatar  avatar Chloe avatar CFOUR avatar  avatar ɾ avatar R1nZox.16 avatar  avatar  avatar  avatar rpRIGGS avatar James Velasquez avatar  avatar ᐯIᖇᑌᔕ avatar Domi avatar  avatar  avatar Ilham Wicaksono avatar António Neves avatar  avatar  avatar

Watchers

 avatar  avatar Griff Hills avatar

sf_camerasecurity's Issues

New QB-Inventory Issues?

I am trying to add the camera_paper code to the app.js file. First of all, it's no longer in a js/ folder. It's just in the html folder. But more importantly, I don't see where I would add it around line 343. This is what it looks like around that line, could someone inform me?

image

I don't know where would be appropriate around there.

Camera Paper error

Hi, when im place a "camera_citizen" and add me a "camera_paper" i have this error

Im on QBCore + Oxinv

camera

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.