Possible bug with dictionaries and rem functions

Im not entirely sure if this is a bug or whatever but I dont have access to bug reporting anyway so here goes.

I was recently passing dictionaries over remote functions as we all do in our free time and I discovered an interesting bug. So my dictionary used integer indices on the client, but when i checked it on the server its indices were turned into strings? Does anyone have a possible explanation for this? If not I guess Ill just loop through the dictionary and turn all the indices back into numbers or something

1 Like

Same here aswell, does anybody have an explanation?

I sent a dictionary with Player indexes, and for some reason the client received them as strings?

if its reproducible it most likely is an engine bug. could you post it in the relevant category?

Not a bug. Lua is an oddball in allowing mixed dictionary key types. It’s not normal and most systems don’t support it, probably including whatever system they’re using to send the data. If you really need it, convert it to an array of {key, value} 2 element tables, and back into a dictionary on the other side.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.