So I made this script, where I try to get the Playerstats from a MongoDB Database and send it to a HUD, for the data to display. When I try to invoke the callback, everything works fine. It’s triggering my client.js that triggers the server.js an everything works fine. But I cant cb() the returned Playerstats to the NUI. If I try to cb() a specific data, everything works just fine, but not if I cb() the Playerstats. If I try to log my data to the console by the client.js, the data is printed perfectly fine, as shown in the reference images.
My client.js:
My server.js
My HUD function:
Whats logged by the Client: