I’m having this error like
[ script:vivo_queue] Error loading script server/sv_vivo.lua in resource vivo_queue: @vivo_queue/server/sv_vivo.lua:230: attempt to index a nil value (global ‘Config’)
[ script:vivo_queue] stack traceback:
[ script:vivo_queue] @vivo_queue/server/sv_vivo.lua:230: in main chunk
[ c-scripting-core] Failed to load script server/sv_vivo.lua.
everything works in the code that take stuff from the config.lua
but on this on line it can’t get the stuff from config.lua
If you’re going to use the config file for serverside, you need to add the config.lua to the server files in the fxmanifest.lua, not just in the client files.
Could you try to reverse the load order of the files in the fxmanifest.lua? I’m wondering if the server file is being parsed and not finding it before the config file even gets loaded.
You haven’t provided the code where you are assigning “cardd” so we can’t check it to see why the body property is nil. Unless you provide more code, people can’t help you.
Also, when pasting code, as schwim mentioned use the preformatted text option. Here’s a tip… Use 3 backticks above and below it, and put the language after the first 3.