of     3   
chevron_rightchevron_rightchevron_right

Protori
#227324567Tuesday, November 07, 2017 10:18 PM GMT

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
Protori
#227324693Tuesday, November 07, 2017 10:21 PM GMT

b www.youtube.com/protori
Protori
#227352345Wednesday, November 08, 2017 10:27 PM GMT

b2 www.youtube.com/protori
Protori
#227352625Wednesday, November 08, 2017 10:34 PM GMT

b3 www.youtube.com/protori
Protori
#227352887Wednesday, November 08, 2017 10:43 PM GMT

b4 www.youtube.com/protori
Protori
#227353129Wednesday, November 08, 2017 10:50 PM GMT

b5 www.youtube.com/protori
Y0_dude
#227353253Wednesday, November 08, 2017 10:53 PM GMT

Just a shot in the dark but if the function is returning nil, then maybe the code (parameter in the function) is wrong? By the way you shouldn't use a code ######## in the hopes of stopping an exploiter.
Protori
#227372272Thursday, November 09, 2017 3:12 PM GMT

nope, I commented out the code, didn't work www.youtube.com/protori
TaaRt
#227373268Thursday, November 09, 2017 4:06 PM GMT

The first argument when a client is calling the server is a player, yours seems to be code thus the if-statement yields false and the function returns nil
Protori
#227379268Thursday, November 09, 2017 8:43 PM GMT

dude, I erased the "code" portion, and i already told you that still nothing www.youtube.com/protori
Protori
#227379566Thursday, November 09, 2017 8:57 PM GMT

bump www.youtube.com/protori
Protori
#227379678Thursday, November 09, 2017 9:03 PM GMT

bump2 www.youtube.com/protori
Protori
#227379725Thursday, November 09, 2017 9:05 PM GMT

bump3 www.youtube.com/protori
soutenu
#227380435Thursday, November 09, 2017 9:34 PM GMT

the first parameter passed to the function is the player who fired the event
Protori
#227478476Sunday, November 12, 2017 3:19 PM GMT

I told you I completely removed the parameters. www.youtube.com/Protori
Protori
#227480503Sunday, November 12, 2017 4:28 PM GMT

bumpp www.youtube.com/Protori
Protori
#227481180Sunday, November 12, 2017 4:47 PM GMT

bumpp2 www.youtube.com/Protori
Protori
#227481857Sunday, November 12, 2017 5:05 PM GMT

bumpp3 www.youtube.com/Protori
Lightning_Dev
#227482257Sunday, November 12, 2017 5:14 PM GMT

It clearly says that you cannot pass mixed tables through remote events/functions on the wiki. http://wiki.roblox.com/index.php?title=Remote_Events_and_Functions#Mixed_Tables "If a table is passed with mixed indices (some values indexed by number, others by string), then only the data indexed by number will be passed. If the table does not have mixed indices, then no data will be lost."
Protori
#227492215Sunday, November 12, 2017 8:55 PM GMT

Then how should I return a table or get a new inventory? www.youtube.com/Protori
Protori
#227498822Sunday, November 12, 2017 11:36 PM GMT

### #######################
Soybeen
#227499054Sunday, November 12, 2017 11:42 PM GMT

.. by not passing a mixed table? XD
Protori
#227503197Monday, November 13, 2017 1:20 AM GMT

then is there another way I should do it? www.youtube.com/Protori
Soybeen
#227503504Monday, November 13, 2017 1:27 AM GMT

Yes, the only other way. Not passing a mixed table.. 😅
Y0_dude
#227504366Monday, November 13, 2017 1:44 AM GMT

From what I can see, the mixed table is not you problem. All of you indices are strings so I don't know why the inventory wouldn't contain a value.

    of     3   
chevron_rightchevron_rightchevron_right