ox_inventory
ox_inventory copied to clipboard
Stugun defined without ammo
Hi, so i have found a little problem with the stungun weapon, example in the data/weapons the stungun doesn't have any ammo setup. If we set in data/shops a registered/serial for the stungun, there will be no serial number generated because of this line.
Files: inventory/modules/items/server.lua if metadata.registered ~= false and metadata.ammo then
So since the stungun can't have any ammo, there is no serial number generated. I tried to put a random ammo in the data/weapons for the stungun, and it worked but the stungun does a weird doubleshot after this.
If we delete the stungun's serial number, all works fine, but for people who want a serial number on stungun it's not going to work.