wasabirobby / wasabi_oxshops

Free player stocked shops for ox_inventory
GNU General Public License v3.0
72 stars 37 forks source link

Preventing script crash if 'shopData' is nil #23

Open error3011 opened 1 year ago

error3011 commented 1 year ago

Simple work around to prevent script from crashing if item metadata does not exist. It adds temporary metadata to items that don't have them and sets the price to default price defined in config.lua

This is not permanent solution but rather a patch for issue that exists.

Issue with items not getting their metadata added when trying to stack them with items that have them still remains but script does not crash when it finds items with no metadata.

2 issues were created that reported this problem before: #13 #20