๐ป Installation
Install devhub_lib
Download and install the required library and configure it according to your framework.
Download https://github.com/DEVHUB-GG/devhub_lib or use command
git clone https://github.com/DEVHUB-GG/devhub_lib.gitInstall resources from keymaster
- Download the PETTY CRIMES script file from keymaster.
Add the items to your inventory
The resource ships an items/ folder with an items.txt file and the item images.
- Open
items/items.txtโ it contains ready-made blocks for qb-core (qb-core/shared/items.lua), ox_inventory (ox_inventory/data/items.lua) and ESX (anINSERTfor theitemstable). Copy the block that matches your inventory. - Copy every
.pngfrom theitems/folder into your inventory's image folder (for exampleqb-inventory/html/imagesorox_inventory/web/images).
Items that do not exist on your server can never drop. If you rename an item, also change it in the Rewards tab of the in-game editor and in the Shop editor.
Database Setup
Import the sql.sql file into your database.
Besides creating the table, it also inserts the default configuration of every activity and of the shop, so the script is fully playable the moment you start it.
Start resources
Move the files to the resources folder on your server and add the following lines to your server.cfg in the correct order:
ensure devhub_lib
ensure devhub_pettyCrimesRestart your server
Configure the script in-game
Log in as an admin and type /pettyCrimes (or open /admindevhub) to enable the activities you want, place their coords and set up the dealer.
See script-flow.md for what each activity does.
DO NOT CHANGE RESOURCE NAME