renzuzu / renzu_shops

Fivem Advanced Shops with stocks and player owned shops using ox_inventory , ox_lib. Item metadata supports and item customisation.
GNU General Public License v3.0
80 stars 38 forks source link

script error on qbcore #118

Open lawtonalex opened 1 year ago

lawtonalex commented 1 year ago

SCRIPT ERROR: @renzu_shops/server/main.lua:1421: attempt to get length of a nil value (field '?')

wont let us restock by ordering a shipment says that and says in game we dont have the funds even tho we do

CuPidev commented 1 year ago

I'm no expert but line 1421 of main.lua checks length of the array of delivery points of given type. From the error I would guess that you fucked up your delivery points setup or you want to use a point of non existing type.

renzuzu commented 1 year ago

havent got a time to check this,

image

cupidev might be correct

when adding new points of shipping, make sure to add the correct index number or else the table count using # will not work

and when you got an error from creating shop order

image

Vault error will throw

EDIT:

it seems im having the same error .. checking

lawtonalex commented 1 year ago

well i havent added any its just the stock file from the git