From 34e2b93692501c262b70f91b0958a70a47de68af Mon Sep 17 00:00:00 2001 From: ItsMuri <88394932+ItzMuri@users.noreply.github.com> Date: Sun, 11 Feb 2024 01:43:54 +0100 Subject: [PATCH] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 38aa5e2..dc62499 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,19 @@ The ps-camera script allows you to capture images throughout the city, serving as a tool for gathering evidence or simply snapping enjoyable photos! # Setup - +#older qb-core * Add items to qb-core > shared > items.lua ``` ['camera'] = {['name'] = 'camera', ['label'] = 'Camera', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'camera.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Camera to take pretty pictures.'}, ['photo'] = {['name'] = 'photo', ['label'] = 'Saved Pic', ['weight'] = 500, ['type'] = 'item', ['image'] = 'photo.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Brand new picture saved!'}, ``` + +#new qb-core +* Add items to qb-core > shared > items.lua +``` + camera = {name = 'camera', label = 'Camera', weight = 1000, type = 'item', image = 'camera.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Camera to take pretty pictures.'}, + photo = {name = 'photo', label = 'Saved Pic', weight = 500, type = 'item', image = 'photo.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Brand new picture saved!'}, +``` * Add pictures for items to your-inventory > html > images * Add Discord webhook to ps-camera > server > [Line 4](https://github.com/Project-Sloth/ps-camera/blob/cc0c2c35ab15840abe7533521a3ed4aac729cc60/server/sv_main.lua#L4)