๐Ÿ’ป Installation

1

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

Shell
git clone https://github.com/DEVHUB-GG/devhub_lib.git
2

Install resources from keymaster

  • Download the PETTY CRIMES script file from keymaster.
3

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 (an INSERT for the items table). Copy the block that matches your inventory.
  • Copy every .png from the items/ folder into your inventory's image folder (for example qb-inventory/html/images or ox_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.

4

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.

5

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:

JavaScript
ensure devhub_lib
ensure devhub_pettyCrimes
6

Restart your server

7

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

Devhub Lib Needed For Each Script Download Purchased Assets