Scripts/resources/[qb]/[qb_extras]/qb-copper/README.md
2024-12-29 21:07:50 +01:00

61 lines
1.8 KiB
Markdown

# qb-copper
Simple electric-box robbery, another illegal way to get materials ;)
# Change Log
- Materials can now be configured as array, user will get random items depending on config
- Police can be notifed if user steal electric box
- Server side events, 1 box can only be stolen by 1 user, other users will get already stolen notif
- new lucky item ;)
- now the quantity can be changed depending on your economy
# Config
```
Config.searchTime = 14000 -- seconds it takes to remove materials from electric-box
Config.boxDistance = 2.5 -- distance from electric-box
Config.policeCall = true -- call police set to false if you don't want it
Config.stealItem = "advancedlockpick" -- item required
Config.searchableModels = {1709954128, 1131941737, -1625667924, -2007495856, -1620823304, -2008643115} -- searchable models id in gta5 you can add your own
Config.ItemTable = { -- materials that can be robbed
[1] = "metalscrap",
[2] = "plastic",
[3] = "copper",
[4] = "iron",
[5] = "aluminum",
[6] = "steel",
[7] = "glass",
}
Config.MinItemsReceived = 2 -- min items received in a box
Config.MaxItemsReceived = 5
Config.MinItemReceivedQty = 6 -- min qty of item received
Config.MaxItemReceivedQty = 10
Config.LuckyItem = "rubber" -- lucky item to give if player has a chance
Config.MinLuckyItemReceivedQty = 2 -- min qty of lucky item
Config.MaxLuckyItemReceivedQty = 10
Config.LuckyItemChance = 5 -- lucky item chance should be between 1 and 100
```
# Dependencies:
qb-core: https://github.com/qbcore-framework/qb-core
qb-target: https://github.com/qbcore-framework/qb-target
qb-policejob: https://github.com/qbcore-framework/qb-policejob
qb-lock: qb-lock: https://github.com/M-Middy/qb-lock
# Preview (Outdated)
https://www.youtube.com/watch?v=tjS9GWmvLII
# Discord
https://discord.gg/AQHbsahZsV
# Big thanks to abdel1touimi for his rework <3