Skip to content

Corrypted/corry-cameras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

  1. qb-core
  2. ox_lib
  3. ox_target
  4. oxmysql

Installation

  1. Add files to your server resources.
  2. Ensure corry-cameras in your server cfg. Make sure ox_lib starts before corry-cameras.
  3. Set the config in config.lua to your needs.
  4. Run the corry_scripts.sql into your database.
  5. Copy and paste the following code into the bottom of ox_inventory/data/items.lua: Here's an example image: https://kappa.lol/h23BaH
        ["camera"] = {
            label = 'Camera',
            weight = 1000,
            stack = false,
            close = true,
            description = "A camera to totally not spy on people with.",
            consume = 1.0,
            client = {
                image = "camera.png",
            },
        },
        ["camera_tablet"] = {
            label = 'Camera Tablet',
            weight = 2000,
            stack = false,
            close = true,
            description = "A tablet to view your camera feeds on.",
            client = {
                image = "camera_tablet.png",
            },
        },
    
  6. Copy and paste the following code into the bottom of ox_inventory/modules/items/client.lua: Here's an example image: https://kappa.lol/ERTARH
    Item('camera', function(data, slot)
        ox_inventory:useItem(data, function(data)
            if data then
                TriggerEvent('camera:client:useCamera')
            end
        end)	
    end)
    
    Item('camera_tablet', function(data, slot)
        ox_inventory:useItem(data, function(data)
            if data then
                TriggerServerEvent('camera:server:OpenCameraTablet')
            end
        end)	
    end)```
    
  7. Drag and drop the images provided into ox_inventory/web/images.
  8. If you modify the item name in the config, you need to use the same name in the functions above and the images.

To do

  • Create logging for each Placed/Destroyed camera.
  • Create an admin view of the camera list allowing camera to be remotely destroyed via the menu.0

For any support needed, join the discord: https://discord.gg/CgUjYhUKQy

About

Camera Resource for FiveM

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages