Shared.lua

I’m having an issue adding my vehicles to the shared.lua in qb-core. The issue I’m having is when I add them I receive server errors even if I remove them afterwards. So I replaced the file with the original and the error stopped popping up.

SCRIPT ERROR: @qb-core/server/events.lua:16: attempt to index a nil value (field ‘Shared’)

You’re likely forgetting a comma or something somewhere, so the shared.lua file is not working correctly and it’s not setting your shared object as a result. Hence the error when it’s referenced in the server/events.lua file. Please provide your version of the shared.lua file so it can be checked for errors.

1 Like

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