Common Issues
Special Contract not being removed when completed
The owner of the chopshop cannot complete their own contract. If you are the owner and generate a Special Contract then the only way it can be completed is by giving it to another player.
Some inventories add a
quality
value to every item by default. If you have an inventory that does this the follow these steps to resolve this issue:Navigate to
envi-chopshop-v2/server/server_edit.lua
Find the
envi-chopshop:checkForContracts
handlerLook for the following lines of code
local itemWithData = Framework.HasItem(src, Config.ContractItem, 1, { vehicle = vehicleName, shop = shopName, shopOwner = ownerName })
Replace those lines with the following code:
local itemWithData = Framework.HasItem(src, Config.ContractItem, 1, { vehicle = vehicleName, shop = shopName, shopOwner = ownerName, quality = 100 })
Now find the following lines of code:
local removed = Framework.RemoveItem(src, Config.ContractItem, 1, { vehicle = vehicleName, shop = shopName, shopOwner = ownerName })
Replace those lines with the following code:
local removed = Framework.RemoveItem(src, Config.ContractItem, 1, { vehicle = vehicleName, shop = shopName, shopOwner = ownerName, quality = 100 })
Last updated