Skip to content

mri-Qbox-Brasil/qbx_camera

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

y_camera

A camera script for the Qbox Framework using fivemanage.

image

Dependencies

Installation

  1. Download the script and put it in your resources folder.
  2. Add ensure y_camera to your server.cfg
  3. Add the following items to ox_inventory
['camera'] = {
    label = 'Camera',
    weight = 1500,
    stack = false,
    close = true,
    client = {
        event = "y_camera:client:openCamera"
    },
    buttons = {
        {
            label = 'View photos',
            action = function(slot)
               exports.y_camera:ShowScreen(slot)
               client.closeInventory()
            end
        },
    }
    description = "A professional camera to take a sneaky picture of your neighbor's wife!"
},

['photo'] = {
    label = 'Photo',
    weight = 100,
    stack = true,
    close = true,
    buttons = {
        {
            label = 'Show',
            action = function(slot)
                exports.y_camera:ShowPicture(slot)
                client.closeInventory()
            end
        },
        {
            label = 'Edit',
            action = function(slot)
                exports.y_camera:EditPicture(slot)
            end
        },
        {
            label = 'Get Link',
            action = function(slot)
                exports.y_camera:CopyURL(slot)
            end
        }
    },
    description = "A photo taken with a camera."
},

About

A camera script for the Qbox Framework

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 40.4%
  • JavaScript 32.8%
  • HTML 14.1%
  • CSS 12.7%