Setup
Dependencies
cf-objectplacer (included in this resource)
ox_lib
oxmysql
Instructions
Place cf-objectplacer and cf-chopshop in your resources folder and add
ensure cf-chopshop
To you server.cfg
Drag and drop
It works out of the box with: * ox_inventory * ox_target * QBCore, QBox and ESX To any custom framework, target system or inventory to work, the functions required are available in the open files.
For any inventory different from ox_inventory, you will need to trigger the events for placing the props, that you can find here: https://app.gitbook.com/o/oPMPc2T7p7l597fGqWPd/s/VYInQ7feoeS3Idwi1lfz/~/changes/26/cf-chop-shop/events
First of all, you need to download and include the resource cf-objectplacer in your server, that should be available also in your keymaster.
SQL
Run installation/db.sql to create the tables in your database.
Items
The needed items can be imported to your ox_inventory from the file installation/ox_items.txt
The images for the items can be imported from the folder installation/images
Sounds
We have compatilibity with interact_sound or xsound.
I recommend xsound, you can download it from here:
https://github.com/Xogy/xsound
xsound
Copy the sound files from /installation/sounds into xsound/html/sounds
Interact Sound
If you want to use interact_sound then move the sounds to interact_sound/client/html/sounds/
Add items to sell or craft (ox_inventory)
Sell items in a shop
To add the items to a shop so players are able to buy then you can go into ox_inventory/data/shops.lua and add them to any shop inventory.
Example:
If you want to add the police storm ram for police officers to able to remove chop shops open the same file ox_inventory/data/shop.lua and search for PoliceArmoury, add the storm ram there, ex:
Adding the items to crafting
To add a crafting station for the chop shop items open the file ox_inventory/data/crafting.lua and add a custom crafting station, for example:
The items for creating the chopshop lift (chopshop_lift) and the materials processing bench (chopshop_materials) is up to you to decide how the players gets them, if you have a question or want help just open a ticket on discord :)
Last updated