API_GetBackpackContainer not working with basePlayer.userIDSolved

Hi,
i see the old API is not supported anymore.
I logged player inventory + player backpack inventory on death and on disconnect.
Nothing fancy, just logging.

Is there a way to do it now?

The API is still supported, although it has been deprecated for a long time.

The reason you are experiencing an issue is that Rust recently changed the basePlayer.userID field to a new type which is convertible to ulong. In some cases, the conversion is automatic, but not when calling another plugin. Instead of API_GetBackpackContainer(basePlayer.userID), use API_GetBackpackContainer((ulong)basePlayer.userID).

NKXTQs24ExGTuL8.jpg WhiteThunder

The API is still supported, although it has been deprecated for a long time.

The reason you are experiencing an issue is that Rust recently changed the basePlayer.userID field to a new type which is convertible to ulong. In some cases, the conversion is automatic, but not when calling another plugin. Instead of API_GetBackpackContainer(basePlayer.userID), use API_GetBackpackContainer((ulong)basePlayer.userID).

Thank you very much for the fast reply.
May I add you to discord for another question (coding related)? :)
Locked automatically