SCRIPT ERROR: @esx_supermarket/server/main.lua:43: attempt to index a nil value (field ‘?’)
For people who have problems with The said esx_supermarket
Example 1 items.sql
Example 2 shop.sql
You set (bread, water) in Shops.SQL
items.SQL have bread but don’t have water or write different item names.
(bread, waters) items.sql
(bread, water) shops.sql
If Kay any id is wrong from that id, will all error
or id2 that is water Id2 or more will not see a return to a less error id id1 or otherwise,
have the following way.
- Look in the SQL of
items.sql, add items to
shops.sql, look for Error ID and delete (most problems are caused here).
- Name the items
Name in items.sql
Name on shops.sql. The name must be the same as items.sql.
-
Try runningcript and enter your [E] shops.
If that doesn’t work, then don’t have to go out. Try to fix method 2 again in SQL and restart esx_supermarket
Go to your maker,
press [E] number 1
Exit the maker
Click [E] the second time
image will come up by itself When you finish
Thank you