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?
API_GetBackpackContainer not working with basePlayer.userIDSolved
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.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), useAPI_GetBackpackContainer((ulong)basePlayer.userID).
May I add you to discord for another question (coding related)? :)