Hello, I'm wondering if someone could help me, I'm wanting to know how i can insert things into the table below with 'table.insert.'
[LUA]
local ModelTbl = {
{Item = "Katlan", Amt = "1"},
{Item = "Aurora", Amt = "1"},
{Item = "Slice of Cake", Amt = "2"},
{Item = "Apple", Amt = "2"},
}
-- Lets say we receive something from the server, how could i add something to this table?
-- table.insert( modeltbl, entity) ??
[/LUA]
You can do table.insert( ModelTbl, {Item = "blah", Amt = 4 }).
I'm slow af...
Thank you yet again gs :P
Sorry, you need to Log In to post a reply to this thread.