ProtoriJoin Date: 2014-02-22 Post Count: 257 |
The table doesn't return nil, but everything inside does. :/
Trust me, the table isn't nil, I don't have any errors outside of this, nothing else is wrong. I'm using "in pairs" in a local script outside of this and everything is returning nil.
local function inventoryRequested(code)
if code == 'Cjc8udMec1' then
local inv = {
Loadouts = {
Garry = {
Weapon = 'Stock',
Cosmetic1 = nil,
Cosmetic2 = nil,
Outfit = nil,
Ammount = 1,
},--Garry
Ivy = {
Weapon = 'Stock',
Cosmetic1 = nil,
Cosmetic2 = nil,
Outfit = nil,
Ammount = 1,
},--Ivy
Trainer = {
Weapon = 'Stock',
Cosmetic1 = nil,
Cosmetic2 = nil,
Outfit = nil,
Ammount = 1,
},--Trainer
}, --Loadouts
Cosmetics = {
PremiumHat = {
Quality = {
q1## #C######### q2 = "None",
}, -- Rarity, and what effect it has if mythical.
indexPos = {category = 'Cosmetics',iName = 'PremiumHat'},
Ammount = 1,
Archivable = false, -- can't trade, sell, or craft ( added later )
}, -- Hat you get for becoming premium, given because the player has bought early access ( will be removed later )
},
Taunts = {
FakeDeath = {
indexPos = {category = 'Taunts',iName = 'FakeDeath'},
Ammount = 1,
Archivable = false,
},
},
Potions = {
FlamePotion = {
indexPos = {category = 'Potions',iName = 'FlamePotion'},
Amount = 1,
Archivable = false,
},
},
Equipment = {
EnergyDrink = {
indexPos = {category = 'Equipment',iName = 'FlamePotion'},
Amount = 1,
Archivable = false,
},
},
Other = {
},
}--Inventory
return inv
end
end
requestInv.OnServerInvoke = inventoryRequested
www.youtube.com/protori |