What does this code mean

SCRIPT ERROR: qb-shops/client/main.lua:43: attempt to get length of a nil value (local (‘products’)

  • SetupItems (gb-shops/client/main.lua:43)
  • ref (Ogb-shops/client/main. lua:90)

handler (qb-core/client/events.lua:215)

SCRIPT ERROR:

error object is not

string

It won’t let me open my ammunition store but I can open any other store qbcore framework

^^^^code has been fixed don’t remember exactly what it was but it was a simple misclick in the code ^^^^^

The error is quite simple to read

@qb-shops is the resource qb-shops

The error is in the function SetupItems

In that function you’re attempting to get the length of a table (#products), but the table is nil

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.