Remove bizitem msg (will auto show items on buy cmd
This commit is contained in:
@@ -1172,13 +1172,11 @@ function buyFromBusinessCommand(command, params, client) {
|
|||||||
|
|
||||||
if(typeof getBusinessData(businessId).floorItemCache[itemSlot] == "undefined") {
|
if(typeof getBusinessData(businessId).floorItemCache[itemSlot] == "undefined") {
|
||||||
messagePlayerError(client, `Item slot ${itemSlot} doesn't exist!`);
|
messagePlayerError(client, `Item slot ${itemSlot} doesn't exist!`);
|
||||||
messagePlayerTip(client, `Use /bizitems to see what the business has for sale.`);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(getBusinessData(businessId).floorItemCache[itemSlot] == -1) {
|
if(getBusinessData(businessId).floorItemCache[itemSlot] == -1) {
|
||||||
messagePlayerError(client, `Item slot ${itemSlot} slot is empty!`);
|
messagePlayerError(client, `Item slot ${itemSlot} slot is empty!`);
|
||||||
messagePlayerTip(client, `Use /bizitems to see what the business has for sale.`);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user