[QUOTE=antid2;20200992]Wow, i know how to do tables....and they aren't working....So i looked at the old script. and compared, look identical..what am i doing wrong?
i also did Spring = {}; in init.lua and cl_init as a global function? looking at the old code as i said.
item_food.lua
[lua]
Spring = {};
Spring.Items.Food = {}
Spring.Items.Food["takeout"] = {
}
[/lua]
it's saying Items is a nil value[/QUOTE]
because Items is never assigned anything all of these are a nil value. And your not even using table format Sping[1].Items
the table had things in it, i just removed it, it works fine i just added
Spring.Items = {}
and it works peachy now, thanks for the help/advice though!
Don't snip your first post when you have figured it out, other people might come across the same problem and would like to know how you solved it, this is a public forum.
Also why create the spring table in init.lua and cl_init.lua when you could simple do it once in shared.lua
Sorry, you need to Log In to post a reply to this thread.