- Add files to your server resources.
- Ensure
corry-camerasin your server cfg. Make sure ox_lib starts before corry-cameras. - Set the config in
config.luato your needs. - Run the
corry_scripts.sqlinto your database. - 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", }, }, - Copy and paste the following code into the bottom of
ox_inventory/modules/items/client.lua: Here's an example image: https://kappa.lol/ERTARHItem('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)``` - Drag and drop the images provided into
ox_inventory/web/images. - If you modify the item name in the config, you need to use the same name in the functions above and the images.
- 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