Show error if too far away to repair a vehicle
This commit is contained in:
@@ -872,6 +872,8 @@ function playerUseItem(client, hotBarSlot) {
|
|||||||
if(getItemData(itemIndex).value <= 0) {
|
if(getItemData(itemIndex).value <= 0) {
|
||||||
destroyItem(itemIndex);
|
destroyItem(itemIndex);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
messagePlayerError(client, getLocaleString(client, "VehicleRepairFailedTooFar"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user